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:
ajschult%verizon.net 2006-09-09 05:47:28 +00:00
Родитель 68113b1407
Коммит 3a54e15f31
1 изменённых файлов: 11 добавлений и 1 удалений

Просмотреть файл

@ -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;