From 38564d4fa52bc8b06ad0ffc830a5bdaa2dfaeaa7 Mon Sep 17 00:00:00 2001 From: "sspitzer%mozilla.org" Date: Fri, 30 Nov 2007 05:56:58 +0000 Subject: [PATCH] on the first url bar autocomplete search (for a new window), prevent the "stars" from jumping. details in bug #399664 r=dietrich git-svn-id: svn://10.0.0.236/trunk@240136 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/toolkit/content/widgets/autocomplete.xml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mozilla/toolkit/content/widgets/autocomplete.xml b/mozilla/toolkit/content/widgets/autocomplete.xml index 3322c6c0897..5358de88890 100644 --- a/mozilla/toolkit/content/widgets/autocomplete.xml +++ b/mozilla/toolkit/content/widgets/autocomplete.xml @@ -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(); ]]>