From f8b0bd01199b3ecfbb3b5cacffee2afc14c1ec3a Mon Sep 17 00:00:00 2001 From: Neil Rashbrook Date: Fri, 21 Feb 2014 00:11:28 +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 : 4158685201d1edc8e7ced214e36f844ad36c3577 --- .../autocomplete/resources/content/autocomplete.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xpfe/components/autocomplete/resources/content/autocomplete.xml b/xpfe/components/autocomplete/resources/content/autocomplete.xml index 12360d164c42..fc389b4a586a 100644 --- a/xpfe/components/autocomplete/resources/content/autocomplete.xml +++ b/xpfe/components/autocomplete/resources/content/autocomplete.xml @@ -17,7 +17,7 @@ - + @@ -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"); }