From 65e97beeeda40acf3acc51cecd3298fd76c44702 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 11 Dec 2013 21:49:52 +0000 Subject: [PATCH] Better height calculation --- pixelegg/js/slider.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pixelegg/js/slider.js b/pixelegg/js/slider.js index 89c7d2665c..dd088eca55 100644 --- a/pixelegg/js/slider.js +++ b/pixelegg/js/slider.js @@ -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; }; });