Bug 518619: When touching rows in a list, scroll partially visible rows into view [r=mark.finkle]

This commit is contained in:
Fabrice Desré 2009-10-23 10:40:48 -04:00
parent 8b85899778
commit abe52d237c
2 changed files with 3 additions and 2 deletions

View File

@ -334,7 +334,7 @@
<hbox id="downloads-header" class="panel-header">
<label value="&downloadsHeader.label;" flex="1"/>
</hbox>
<richlistbox id="downloads-list" flex="1"/>
<richlistbox id="downloads-list" flex="1" onselect="this.ensureSelectedElementIsVisible()"/>
</vbox>
<vbox id="prefs-container" flex="1">
@ -342,7 +342,7 @@
<label value="&prefsHeader.label;"/>
</hbox>
<notificationbox id="prefs-messages" flex="1">
<richlistbox id="prefs-list" seltype="single" flex="1">
<richlistbox id="prefs-list" seltype="single" flex="1" onselect="this.ensureSelectedElementIsVisible()">
<setting title="&about.title;" type="control">
&about.description;
<button id="prefs-about-button" label="&about.button;"

View File

@ -208,6 +208,7 @@ var ExtensionsView = {
if (item.hideOptions)
item.hideOptions();
}
this._list.ensureSelectedElementIsVisible();
},
get visible() {