# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: moodle/lib/javascript-navigation.js
--- moodle/lib/javascript-navigation.js Base (1.11)
+++ moodle/lib/javascript-navigation.js Locally Modified (Based On 1.11)
@@ -609,7 +609,7 @@
 
     // 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;
