From 6fdff0800a6028bff30cf309476e7b2013b5b40e Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Tue, 28 Jul 2015 20:10:58 +0100 Subject: [PATCH] Bug 1187689 - Apply a minimum width to autocomplete popup in e10s mode. r=felipe --- toolkit/components/satchel/AutoCompleteE10S.jsm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/toolkit/components/satchel/AutoCompleteE10S.jsm b/toolkit/components/satchel/AutoCompleteE10S.jsm index 79d4911d66ba..94365e7341ed 100644 --- a/toolkit/components/satchel/AutoCompleteE10S.jsm +++ b/toolkit/components/satchel/AutoCompleteE10S.jsm @@ -93,7 +93,8 @@ this.AutoCompleteE10S = { this.browser = browserWindow.gBrowser.selectedBrowser; this.popup = this.browser.autoCompletePopup; this.popup.hidden = false; - this.popup.setAttribute("width", rect.width); + // don't allow the popup to become overly narrow + this.popup.setAttribute("width", Math.max(100, rect.width)); this.popup.style.direction = direction; this.x = rect.left;