diff --git a/xpfe/components/autocomplete/resources/content/autocomplete.xml b/xpfe/components/autocomplete/resources/content/autocomplete.xml index bcb458169063..57cb04ad2349 100644 --- a/xpfe/components/autocomplete/resources/content/autocomplete.xml +++ b/xpfe/components/autocomplete/resources/content/autocomplete.xml @@ -1226,9 +1226,9 @@ this.mSelectedIndex = aRow; - this.mBoxObject.invalidateRow(aRow); - if (aRow != null) { + this.mBoxObject.invalidateRow(aRow); + this.mBoxObject.ensureRowIsVisible(aRow); // Fire select event on xul:tree so that accessibility API // support layer can fire appropriate accessibility events. @@ -1497,8 +1497,7 @@ - new Date() + Date.now() - + = 0) - return {row: row.value, column: col.value.id}; - else - return null; + var row = this.textbox.view.treeBoxObject.getRowAt(x, y); + if (row >= 0) + return row; + return null; ]]> - + 30) { - var rc = this.getHoverCell(event); - if (rc && rc.row != this.textbox.view.selectedIndex) - this.textbox.view.selectedIndex = rc.row; - this.mLastMoveTime = new Date(); + if (Date.now() - this.mLastMoveTime > 30) { + var rc = this.getHoverRow(event); + if (rc != null && rc != this.textbox.view.selectedIndex) + this.textbox.view.selectedIndex = rc; + this.mLastMoveTime = Date.now(); } ]]>