Bug 1361195 - round the searchbar min-width to ensure one-off buttons are correctly sized on HiDPI, r=past.

This commit is contained in:
Florian Quèze 2017-06-23 16:25:45 +02:00
Родитель 2d96a17cbd
Коммит 245cc847d4
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -1093,7 +1093,7 @@
// Ensure the panel is wide enough to fit at least 3 engines.
let minWidth = Math.max(textboxRect.width,
this.oneOffButtons.buttonWidth * 3);
this.style.minWidth = minWidth + "px";
this.style.minWidth = Math.round(minWidth) + "px";
// Alignment of the panel with the searchbar is obtained with negative
// margins.
this.style.marginLeft = (textboxRect.left - inputRect.left) + "px";