Bug 303520: Cannot select added language in language preferences dialog if added when the list can scroll, r=mconnor

This commit is contained in:
gavin%gavinsharp.com 2005-09-13 22:49:40 +00:00
parent 31c2f50383
commit 4ee897ceaa

View File

@ -179,9 +179,11 @@ var gLanguagesDialog = {
this._acceptLanguages[languages[i]] = true;
}
if (this._activeLanguages.childNodes.length > 0)
if (this._activeLanguages.childNodes.length > 0) {
this._activeLanguages.ensureIndexIsVisible(selectedIndex);
this._activeLanguages.selectedIndex = selectedIndex;
}
return undefined;
},