mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 859126 - Mouse scrolling of long menus breaks if the last item is hidden via display:none. r=dao
This commit is contained in:
parent
f6cbc83e84
commit
9ef5bdba36
@ -193,9 +193,9 @@
|
||||
|
||||
<method name="_canScrollToElement">
|
||||
<parameter name="element"/>
|
||||
<body>
|
||||
return !element.hidden;
|
||||
</body>
|
||||
<body><![CDATA[
|
||||
return window.getComputedStyle(element).display != "none";
|
||||
]]></body>
|
||||
</method>
|
||||
|
||||
<method name="ensureElementIsVisible">
|
||||
|
Loading…
Reference in New Issue
Block a user