Bug 1964256 - Remove hard-coded workaround for dialog sizing. r=emz

80vw is not enough with a sidebar. Dialogs seem to collapse fine without
this now, I think the missing bit was the min-width: 0 added in
bug 1963168.

Differential Revision: https://phabricator.services.mozilla.com/D249542
This commit is contained in:
Emilio Cobos Álvarez
2025-05-19 22:12:10 +00:00
committed by ealvarez@mozilla.com
parent 002d90f4f0
commit 9b1bc66627

View File

@@ -555,11 +555,6 @@ SubDialog.prototype = {
boxHorizontalBorder + frameHorizontalMargin
}px + ${frameMinWidth})`;
// Temporary fix to allow parent chrome to collapse properly to min width.
// See Bug 1658722.
if (this._window.isChromeWindow) {
boxMinWidth = `min(80vw, ${boxMinWidth})`;
}
this._box.style.minWidth = boxMinWidth;
},