1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 06:58:00 +01:00

Resurrect ItemList scrollIntoView code for the time being.

This commit is contained in:
Kris Maglione
2010-09-24 16:53:24 -04:00
parent 9849fae88e
commit cf098ab18c

View File

@@ -1643,7 +1643,7 @@ const ItemList = Class("ItemList", {
</div> </div>
</div>, this._divNodes); </div>, this._divNodes);
this._doc.body.replaceChild(this._div, this._doc.body.firstChild); this._doc.body.replaceChild(this._div, this._doc.body.firstChild);
//div.scrollIntoView(true); div.scrollIntoView(true);
this._items.contextList.forEach(function init_eachContext(context) { this._items.contextList.forEach(function init_eachContext(context) {
delete context.cache.nodes; delete context.cache.nodes;
@@ -1813,7 +1813,7 @@ const ItemList = Class("ItemList", {
this._fill(newOffset); this._fill(newOffset);
if (index >= 0) { if (index >= 0) {
this._getCompletion(index).setAttribute("selected", "true"); this._getCompletion(index).setAttribute("selected", "true");
//this._getCompletion(index).scrollIntoView(false); this._getCompletion(index).scrollIntoView(false);
} }
//if (index == 0) //if (index == 0)