From e09ef36a4c0e98bcc923162a76c0b6a1bb30b046 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Wed, 16 Dec 2009 02:08:53 +0000 Subject: [PATCH] lib-navigation MDL-21113 Fixed minor javascript error when positioning sidepanel tabs for display --- lib/javascript-navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/javascript-navigation.js b/lib/javascript-navigation.js index fa5e3d3e23..1328185c20 100644 --- a/lib/javascript-navigation.js +++ b/lib/javascript-navigation.js @@ -609,7 +609,7 @@ navigation_tab_panel.prototype.resize_tab = function () { // This makes sure that if the panel is big it is moved up to ensure we don't // have wasted space above the panel - if ((tabtop+tabheight)>screenheight && tabtop > 10) { + if ((tabtop+tabheight)>(screenheight+scrolltop) && tabtop > 10) { tabtop = (screenheight-tabheight-10); if (tabtop<10) { tabtop = 10; -- 2.39.5