Better height calculation

This commit is contained in:
Nathan Gray 2013-12-11 21:49:52 +00:00
parent 9741f1c7d5
commit 65e97beeed

View File

@ -71,7 +71,12 @@ egw_LAB.wait(function() {
egw_fw.prototype.getIFrameHeight = function()
{
$header = $j(this.tabsUi.appHeaderContainer);
var height = $j(this.sidemenuDiv).height()-this.tabsUi.appHeaderContainer.outerHeight() - this.tabsUi.appHeader.outerHeight();
var content = $j(this.tabsUi.activeTab.contentDiv);
//var height = $j(this.sidemenuDiv).height()-this.tabsUi.appHeaderContainer.outerHeight() - this.tabsUi.appHeader.outerHeight();
var height = $j(this.sidemenuDiv).height()
- $header.outerHeight() - $j(this.tabsUi.contHeaderDiv).outerHeight() - (content.outerHeight(true) - content.height())
// Not sure where this comes from...
+ 5;
return height;
};
});