Allow PanelMultiView subviews to be shorter than the view they were opened from
Categories
(Firefox :: Toolbars and Customization, enhancement)
Tracking
()
People
(Reporter: jleritte, Assigned: jleritte)
References
Details
Attachments
(1 obsolete file)
When PanelMultiView shows a subview, #transitionViews sets the min-height of the view container and of the offscreen view stack to the knownHeight of the older view (since bug 1424264). Every subview is therefore at least as tall as the view it was opened from, and a short subview ends up with empty space below its content.
The redesigned Trust Panel needs short subviews. Its Delete site data subview is about 140px tall in the design, while the main view is close to 300px, so with the current behavior the subview keeps the main view's height.
Proposal: an opt-in shrink-to-fit attribute on panelview. When the deepest view of a transition has it, no minimum height is applied, so the panel shrinks to the subview going forward and grows back when going back. Views without the attribute keep the current behavior.
A patch with a new test, browser_PanelMultiView_shrink_to_fit.js, is ready.
| Assignee | ||
Comment 1•21 days ago
|
||
Since bug 1424264 a subview is at least as tall as the view it was opened
from, which leaves empty space below short subviews such as the ones of
the redesigned Trust Panel. The new shrink-to-fit panelview attribute
lets a view skip that minimum height.
Updated•21 days ago
|
| Assignee | ||
Updated•7 days ago
|
| Assignee | ||
Comment 2•6 days ago
|
||
Resolving as WONTFIX: design decided that the redesigned Trust Panel subviews should keep the main panel's height as their minimum, like other PanelMultiView subviews, so this opt-out is no longer needed. D340981 is abandoned.
The shrink-to-fit attributes left on the landed subviews (bug 2091017, bug 2091775, bug 2094742) have no effect and are removed in bug 2097274.
Updated•6 days ago
|
Description
•