mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 20:53:53 +01:00
MDL-44334 lockscroll: Fix wrong warning message
This commit is contained in:
parent
41244dd3ce
commit
c13854785f
@ -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;
|
||||
}
|
||||
|
||||
|
2
lib/yui/src/lockscroll/js/lockscroll.js
vendored
2
lib/yui/src/lockscroll/js/lockscroll.js
vendored
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user