mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 01:08:21 +00:00
Bug 298704 richlistbox should call ensureElementIsVisible and not scrollToElement in selectedItem
patch by rob_strong@exchangecode.com r=bsmedberg a=bsmedberg
This commit is contained in:
parent
76f208b3e2
commit
16fd4d30ca
@ -102,7 +102,7 @@
|
||||
|
||||
if (val) {
|
||||
val.selected = true;
|
||||
this.scrollBoxObject.scrollToElement(val);
|
||||
this.scrollBoxObject.ensureElementIsVisible(val);
|
||||
this.fireActiveItemEvent();
|
||||
}
|
||||
|
||||
@ -161,6 +161,8 @@
|
||||
this.goDown();
|
||||
else
|
||||
this.selectedItem = lastSelected;
|
||||
|
||||
this.scrollBoxObject.scrollToElement(this.selectedItem);
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
Loading…
x
Reference in New Issue
Block a user