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:
sspitzer%mozilla.org 2007-11-30 05:56:58 +00:00
Родитель 43c18c42a2
Коммит 1d8e939617
1 изменённых файлов: 7 добавлений и 3 удалений

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

@ -1110,9 +1110,13 @@
// for the first richlistitem, when we call _adjustWidth()
// from the xbl constructor, these elements don't have widths
// but we rely on those widths to properly set the widths
// of the scrollboxes.
setTimeout(function(self) { self._adjustWidth(); }, 0, this);
this._adjustAcItem();
// of the scrollboxes. if we don't have the widths
// try again on a timeout.
if (!this._urlOverflowEllipsis.boxObject.width ||
!this._titleOverflowEllipsis.boxObject.width)
setTimeout(function(self) { self._adjustWidth(); }, 0, this);
else
this._adjustWidth();
]]>
</constructor>