Bug 308098 - richlistbox throws a JS erorr when opening the Download manager. patch from zeniko@gmail.com, r=mconnor.

This commit is contained in:
mozilla.mano%sent.com 2005-09-15 21:48:13 +00:00
parent 7f5deb9d69
commit e6daaf090b

View File

@ -256,9 +256,9 @@
this._selectedItem = aItem;
this._selectedIndex = this.getIndexOf(aItem);
this.ensureSelectedElementIsVisible();
if (aItem) {
this.ensureSelectedElementIsVisible();
aItem.selected = true;
aItem.focus();
}
@ -347,7 +347,8 @@
<parameter name="aElement"/>
<body>
<![CDATA[
this.scrollBoxObject.ensureElementIsVisible(aElement);
if (aElement)
this.scrollBoxObject.ensureElementIsVisible(aElement);
]]>
</body>
</method>