Bug 1187689 - Apply a minimum width to autocomplete popup in e10s mode. r=felipe

This commit is contained in:
Jonathan Kew 2015-07-28 20:10:58 +01:00
Родитель 736bd7b4ce
Коммит 6fdff0800a
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -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;