зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
01d18dd2de
Коммит
b7346ab7e2
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче