Commit 99a355cb authored by Piotr Gawron's avatar Piotr Gawron
Browse files

tab panel initial width fixed to use proper offset

parent 11432773
......@@ -534,7 +534,7 @@ GuiUtils.prototype.createTab = function (params) {
tabData.content.appendChild(contentDiv);
$(contentDiv).css("overflow", "auto");
$(contentDiv).css("height", "calc(100vh - " + $(contentDiv).position().top + "px)");
$(contentDiv).css("height", "calc(100vh - " + $(contentDiv).offset().top + "px)");
return {
title: navLink,
......
......@@ -82,7 +82,7 @@ PluginManager.prototype.addPlugin = function (options) {
const tab = $(tabData.content);
tab.css('overflow', 'auto');
var adjustHeight = function () {
tab.css('height', 'calc( 100vh - ' + tab.position().top + 'px )');
tab.css('height', 'calc( 100vh - ' + tab.offset().top + 'px )');
};
self._pluginOnResizeHandlers[plugin.getPluginId()] = adjustHeight;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment