diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-09-16 10:38:12 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-09-16 10:38:12 +0000 |
commit | b08ae847bf20721545cec87e6e08aa4c3a51d0a8 (patch) | |
tree | ecf1e5f254ce198492a7d9c255605e7224546e09 /ui/ui.core.js | |
parent | fe73615204227f177a2dcf54a6e10d2e47fd5505 (diff) | |
download | jquery-ui-b08ae847bf20721545cec87e6e08aa4c3a51d0a8.tar.gz jquery-ui-b08ae847bf20721545cec87e6e08aa4c3a51d0a8.zip |
core: hasScroll now checks for overflow hidden, since then the users wants scroll to be hidden
draggable: containment respects overflow hidden (fixes #3328)
Diffstat (limited to 'ui/ui.core.js')
-rw-r--r-- | ui/ui.core.js | 4 |
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; |