зеркало из https://github.com/mozilla/pjs.git
on the first url bar autocomplete search (for a new window), prevent the "stars" from jumping.
details in bug #399664 r=dietrich
This commit is contained in:
Родитель
43c18c42a2
Коммит
1d8e939617
|
@ -1110,9 +1110,13 @@
|
||||||
// for the first richlistitem, when we call _adjustWidth()
|
// for the first richlistitem, when we call _adjustWidth()
|
||||||
// from the xbl constructor, these elements don't have widths
|
// from the xbl constructor, these elements don't have widths
|
||||||
// but we rely on those widths to properly set the widths
|
// but we rely on those widths to properly set the widths
|
||||||
// of the scrollboxes.
|
// of the scrollboxes. if we don't have the widths
|
||||||
setTimeout(function(self) { self._adjustWidth(); }, 0, this);
|
// try again on a timeout.
|
||||||
this._adjustAcItem();
|
if (!this._urlOverflowEllipsis.boxObject.width ||
|
||||||
|
!this._titleOverflowEllipsis.boxObject.width)
|
||||||
|
setTimeout(function(self) { self._adjustWidth(); }, 0, this);
|
||||||
|
else
|
||||||
|
this._adjustWidth();
|
||||||
]]>
|
]]>
|
||||||
</constructor>
|
</constructor>
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче