From 8f9e5a630d736c6aae6d099087bf8c7bc087ab65 Mon Sep 17 00:00:00 2001
From: Frederic Massart <fred@moodle.com>
Date: Wed, 12 Mar 2014 15:32:24 +0800
Subject: [PATCH] MDL-44334 lockscroll: Fix wrong warning message

---
 .../moodle-core-lockscroll-debug.js                |    2 +-
 lib/yui/src/lockscroll/js/lockscroll.js            |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/yui/build/moodle-core-lockscroll/moodle-core-lockscroll-debug.js b/lib/yui/build/moodle-core-lockscroll/moodle-core-lockscroll-debug.js
index c9e045c..138ce04 100644
--- a/lib/yui/build/moodle-core-lockscroll/moodle-core-lockscroll-debug.js
+++ b/lib/yui/build/moodle-core-lockscroll/moodle-core-lockscroll-debug.js
@@ -63,7 +63,7 @@ Y.namespace('M.core').LockScroll = Y.Base.create('lockScroll', Y.Plugin.Base, []
             windowHeight = Y.config.win.innerHeight || Y.config.doc.documentElement.clientHeight || 0;
 
         if (!forceOnSmallWindow && dialogueHeight > (windowHeight - 10)) {
-            Y.log('Dialogue height smaller than window height. Ignoring enable request.', 'warn', 'moodle-core-lockscroll');
+            Y.log('Dialogue height greater than window height. Ignoring enable request.', 'warn', 'moodle-core-lockscroll');
             return;
         }
 
diff --git a/lib/yui/src/lockscroll/js/lockscroll.js b/lib/yui/src/lockscroll/js/lockscroll.js
index 489b1ef..0173793 100644
--- a/lib/yui/src/lockscroll/js/lockscroll.js
+++ b/lib/yui/src/lockscroll/js/lockscroll.js
@@ -61,7 +61,7 @@ Y.namespace('M.core').LockScroll = Y.Base.create('lockScroll', Y.Plugin.Base, []
             windowHeight = Y.config.win.innerHeight || Y.config.doc.documentElement.clientHeight || 0;
 
         if (!forceOnSmallWindow && dialogueHeight > (windowHeight - 10)) {
-            Y.log('Dialogue height smaller than window height. Ignoring enable request.', 'warn', 'moodle-core-lockscroll');
+            Y.log('Dialogue height greater than window height. Ignoring enable request.', 'warn', 'moodle-core-lockscroll');
             return;
         }
 
-- 
1.7.9.5

