Bug 756003 - Check both overflow-x and overflow-y properties to see if an element is scrollable. r=mfinkle

This commit is contained in:
Kartikaya Gupta 2012-06-06 09:49:13 -04:00
parent 5c5b5746b0
commit c33b5c2b62

View File

@ -2850,7 +2850,8 @@ var BrowserEventHandler = {
var computedStyle = win.getComputedStyle(elem);
if (!computedStyle)
return false;
return computedStyle.overflow == 'auto' || computedStyle.overflow == 'scroll';
return computedStyle.overflowX == 'auto' || computedStyle.overflowX == 'scroll'
|| computedStyle.overflowY == 'auto' || computedStyle.overflowY == 'scroll';
},
_findScrollableElement: function(elem, checkElem) {