mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 03:05:34 +00:00
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:
parent
1f98914466
commit
b85e5fe3ff
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user