зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1361195 - round the searchbar min-width to ensure one-off buttons are correctly sized on HiDPI, r=past.
This commit is contained in:
Родитель
2d96a17cbd
Коммит
245cc847d4
|
@ -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";
|
||||
|
|
Загрузка…
Ссылка в новой задаче