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:
timeless%mozdev.org 2005-06-28 21:30:56 +00:00
parent 76f208b3e2
commit 16fd4d30ca

View File

@ -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>