зеркало из https://github.com/mozilla/gecko-dev.git
Bug 341047: After "Close other tabs" tab's context menu contains scrollbars/arrows. Patch by Serge Gautherie <sgautherie.bz@free.fr>, r+sr=jag
This commit is contained in:
Родитель
68113b1407
Коммит
3a54e15f31
|
@ -41,13 +41,18 @@
|
|||
|
||||
this.mScrollBoxObject.scrollByIndex(lines);
|
||||
]]></body>
|
||||
</method>
|
||||
</method>
|
||||
</implementation>
|
||||
|
||||
<handlers>
|
||||
<handler event="DOMMouseScroll" action="this.scrollByIndex(event.detail); event.stopPropagation();"/>
|
||||
|
||||
<handler event="underflow"><![CDATA[
|
||||
// XXX Workaround for unexpected events dispatched during scrollbox
|
||||
// destruction (bug 341047).
|
||||
if (this.boxObject.width <= 0)
|
||||
return;
|
||||
|
||||
var kids = document.getAnonymousNodes(this);
|
||||
kids[0].collapsed = true;
|
||||
kids[2].collapsed = true;
|
||||
|
@ -55,6 +60,11 @@
|
|||
]]></handler>
|
||||
|
||||
<handler event="overflow"><![CDATA[
|
||||
// XXX Workaround for unexpected events dispatched during scrollbox
|
||||
// destruction (bug 341047).
|
||||
if (this.boxObject.width <= 0)
|
||||
return;
|
||||
|
||||
var kids = document.getAnonymousNodes(this);
|
||||
kids[0].collapsed = false;
|
||||
kids[2].collapsed = false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче