]> git.mjollnir.org Git - moodle.git/commitdiff
lib-navigation MDL-21113 Fixed minor javascript error when positioning sidepanel...
authorSam Hemelryk <sam@moodle.com>
Wed, 16 Dec 2009 02:08:53 +0000 (02:08 +0000)
committerSam Hemelryk <sam@moodle.com>
Wed, 16 Dec 2009 02:08:53 +0000 (02:08 +0000)
lib/javascript-navigation.js

index fa5e3d3e2367a0a56dda72286cb18f64ec7c253e..1328185c207d785d9a4b7bc3981ef36e06a82daa 100644 (file)
@@ -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;