зеркало из https://github.com/mozilla/gecko-dev.git
Bug 859126 - Mouse scrolling of long menus breaks if the last item is hidden via display:none. r=dao
This commit is contained in:
Родитель
f6cbc83e84
Коммит
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">
|
||||
|
|
Загрузка…
Ссылка в новой задаче