Skip to content

Commit

Permalink
Bug 1795972 - Prevent offscreen view container from growing the popup…
Browse files Browse the repository at this point in the history
…. r=Gijs

This depends on bug 1795892 and restores the sizing behavior that XUL had for
this case (making the overflow: hidden element not contribute to the intrinsic
size of the container).

If this were to be written today, we couldd probably use absolute positioning
or transforms, and maybe this could be simplified a bit. This is the less risky
change tho.

Differential Revision: https://phabricator.services.mozilla.com/D159639
  • Loading branch information
emilio committed Oct 19, 2022
1 parent ee334b4 commit db9217e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions browser/base/content/browser.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ body {

panelmultiview {
-moz-box-align: start;
min-width: 0;
min-height: 0;
}

panelmultiview[transitioning] {
Expand All @@ -151,6 +153,8 @@ panelview[mainview] > .panel-header {

.panel-viewcontainer {
overflow: hidden;
min-width: 0;
min-height: 0;
}

.panel-viewcontainer[panelopen] {
Expand Down

0 comments on commit db9217e

Please sign in to comment.