Bug 563777 - Awesomebar refuses to scroll down when moving the selection using the Down key; it jumps back although selection stays [r=mbrubeck]

This commit is contained in:
Mark Finkle 2010-05-13 13:45:23 -04:00
parent 603fa36bf9
commit 9437f54308

View File

@ -37,11 +37,6 @@
}
]]>
</handler>
<handler event="input">
<![CDATA[
this.popup.scrollToTop();
]]>
</handler>
</handlers>
</binding>
@ -184,12 +179,6 @@
this.collapsed = true;
this._popupOpen = false;
// Scroll to the top left for the next open (only if necessary).
// Doing this now rather than in open() turns out to be faster,
// possibly because it avoids scrolling too soon after we uncollapse
// ourselves
this.scrollToTop();
let event = document.createEvent("Events");
event.initEvent("popuphidden", true, false);
this.dispatchEvent(event);
@ -285,6 +274,9 @@
items.insertBefore(this._allBookmarksItem, items.firstChild);
this._allBookmarksItem._hidden = false;
}
// Make sure the list is scrolled to the top
this.scrollToTop();
]]></body>
</method>