aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.core.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ui.core.js')
-rw-r--r--ui/ui.core.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js
index 9275c5fc1..b7e89b37e 100644
--- a/ui/ui.core.js
+++ b/ui/ui.core.js
@@ -283,6 +283,10 @@ $.ui = {
.unbind('selectstart.ui');
},
hasScroll: function(e, a) {
+
+ //If overflow is hidden, the element might have extra content, but the user wants to hide it
+ if ($(e).css('overflow') == 'hidden') { return false; }
+
var scroll = (a && a == 'left') ? 'scrollLeft' : 'scrollTop',
has = false;