Bug 452080, autocomplete panel flickers on mobile because it hardcodes a panel height, instead don't resize when a height is specified, r=gavin

This commit is contained in:
Neil Deakin 2008-09-13 17:03:07 -04:00
Родитель 01d18dd2de
Коммит b7346ab7e2
1 изменённых файлов: 8 добавлений и 6 удалений

Просмотреть файл

@ -988,13 +988,15 @@
<method name="_invalidate">
<body>
<![CDATA[
// collapsed if no matches
this.richlistbox.collapsed = (this._matchCount == 0);
if (!this.hasAttribute("height")) {
// collapsed if no matches
this.richlistbox.collapsed = (this._matchCount == 0);
// Dynamically update height until richlistbox.rows works (bug 401939)
// Adjust the height immediately and after the row contents update
this.adjustHeight();
setTimeout(function(self) self.adjustHeight(), 0, this);
// Dynamically update height until richlistbox.rows works (bug 401939)
// Adjust the height immediately and after the row contents update
this.adjustHeight();
setTimeout(function(self) self.adjustHeight(), 0, this);
}
// make sure to collapse any existing richlistitems
// that aren't going to be used