mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 504384 - Excessive Flickering with the Asynchronous Location Bar
This removes the synchronous call to adjustHeight. The adjustHeight call running in the setTimeout will run after _appendCurrentResult has added our results, and after any overflow has happened that we might hit (see _adjustAcItem). r=gavin
This commit is contained in:
parent
99a7d82e91
commit
a55625d015
@ -975,13 +975,15 @@
|
||||
<method name="_invalidate">
|
||||
<body>
|
||||
<![CDATA[
|
||||
// If we do not have a specific height, we'll have to figure out what
|
||||
// our actual height should be dynamically.
|
||||
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();
|
||||
// Adjust the height, but we need to delay this because adjustHeight
|
||||
// gets the wrong values (see the comments in _adjustAcItem about
|
||||
// overflow. XXX why?).
|
||||
setTimeout(function(self) self.adjustHeight(), 0, this);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user