Bug 309289: When moving an extension up/down in the richlistbox widget, it is scrolled to the top of the window, patch by Simon B�nzli <zeniko@gmail.com>, r=mconnor/doron

This commit is contained in:
gavin%gavinsharp.com 2006-03-13 13:36:34 +00:00
parent 1f98914466
commit b85e5fe3ff

View File

@ -128,7 +128,8 @@
if (element) {
this.selectedItem = element;
this.scrollBoxObject.scrollToElement(this.selectedItem);
if (!this._isItemVisible(this.selectedItem))
this.scrollBoxObject.scrollToElement(this.selectedItem);
return;
}
}