Bug 308098 - richlistbox throws a JS erorr when opening the Download manager. patch from zeniko@gmail.com, r=mconnor.
git-svn-id: svn://10.0.0.236/trunk@180312 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d699843e79
commit
d3c0550ea2
@ -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…
x
Reference in New Issue
Block a user