зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1583148 - Stop subtracting border widths from clientWidth since it doesn't include borders in the first place. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D46926 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
a76848ab34
Коммит
28a3dbf885
|
@ -4937,8 +4937,6 @@ OverflowableToolbar.prototype = {
|
|||
let style = win.getComputedStyle(this._toolbar);
|
||||
totalAvailWidth =
|
||||
this._toolbar.clientWidth -
|
||||
parseFloat(style.borderLeftWidth) -
|
||||
parseFloat(style.borderRightWidth) -
|
||||
parseFloat(style.paddingLeft) -
|
||||
parseFloat(style.paddingRight);
|
||||
for (let child of this._toolbar.children) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче