From e2b7bb153ae4e873129018172d6906c72990fbe4 Mon Sep 17 00:00:00 2001 From: Neil Rashbrook Date: Sun, 23 Feb 2014 18:26:52 +0000 Subject: [PATCH] Bug 974258 Manually size autocomplete history popup to the autocomplete's width r=Ratty DONTBUILD (SeaMonkey-specific code) --HG-- extra : rebase_source : 76ab88f445cdead2469031ec6dede805a6fd1350 --- .../autocomplete/resources/content/autocomplete.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xpfe/components/autocomplete/resources/content/autocomplete.xml b/xpfe/components/autocomplete/resources/content/autocomplete.xml index 12360d164c4..4d4e13d4cf3 100644 --- a/xpfe/components/autocomplete/resources/content/autocomplete.xml +++ b/xpfe/components/autocomplete/resources/content/autocomplete.xml @@ -10,14 +10,14 @@ xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:xbl="http://www.mozilla.org/xbl"> - - + @@ -1628,6 +1628,9 @@ var textbox = document.getBindingParent(this); var kids = textbox.getElementsByClassName("autocomplete-history-popup"); if (kids.item(0) && textbox.getAttribute("open") != "true") { // Open history popup + var w = textbox.boxObject.width; + if (w != kids[0].boxObject.width) + kids[0].width = w; kids[0].showPopup(textbox, -1, -1, "popup", "bottomleft", "topleft"); textbox.setAttribute("open", "true"); }