mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 06:45:42 +00:00
Bug 308098 - richlistbox throws a JS erorr when opening the Download manager. patch from zeniko@gmail.com, r=mconnor.
This commit is contained in:
parent
7f5deb9d69
commit
e6daaf090b
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user