Closed Bug 2091011 Opened 21 days ago Closed 6 days ago

Allow PanelMultiView subviews to be shorter than the view they were opened from

Categories

(Firefox :: Toolbars and Customization, enhancement)

enhancement

Tracking

()

RESOLVED WONTFIX

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.

Blocks: 2091017

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.

Assignee: nobody → jleritte
Status: NEW → ASSIGNED
Blocks: 2091775
No longer blocks: 2091017, 2091775
Depends on: 2091017, 2091775
See Also: → 2097274

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.

Status: ASSIGNED → RESOLVED
Closed: 6 days ago
Resolution: --- → WONTFIX
Attachment #9678068 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: