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

View File

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