diff --git a/application/itopwebpage.class.inc.php b/application/itopwebpage.class.inc.php index 86798a58a..595b09b79 100644 --- a/application/itopwebpage.class.inc.php +++ b/application/itopwebpage.class.inc.php @@ -331,15 +331,24 @@ EOF // This helper will be used to resize tab width var resizeTab = function(oElem){ - var tableWidth = (oElem.children('table:first').length > 0) ? oElem.children('table:first').outerWidth() : 0; + var iTableWidth = (oElem.children('table:first').length > 0) ? oElem.children('table:first').outerWidth() : 0; + var oWizContainerElem = $('.wizContainer'); - $('.wizContainer').css('min-width', - parseInt(tableWidth) + + // Resizing wizard container + oWizContainerElem.css('min-width', + parseInt(iTableWidth) + parseInt(oElem.css('margin-left'))*2 + parseInt(oElem.css('padding-left'))*2 + parseInt(tabs.css('margin-left'))*2 + parseInt(tabs.css('padding-left'))*2 ) + + // Resizing header according to wizContainer + oWizContainerElem.parent().find('.page_header').css('min-width', + parseInt(oWizContainerElem.width()) + + parseInt(oWizContainerElem.css('margin-left'))*2 + + parseInt(oWizContainerElem.css('padding-left'))*2 + ); }; // Ugly patch for a change in the behavior of jQuery UI: