[Protections Panel] If the info message is open when navigating to a sub-panel, the header inflates abnormally after navigating back and closing the message
Categories
(Firefox :: Site Identity, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: nhnt11, Assigned: nhnt11)
References
Details
(Whiteboard: [privacy-panel][skyline])
Attachments
(1 file)
STR:
- Open the Protections Popup and ensure the info message is shown by clicking the "i" icon if necessary
- Navigate into a sub-panel (for example, click the "Site not working?" link)
- Navigate back to the main view
- Close the info message by clicking the "i" icon.
Expected: The popup shrinks to compensate for the now-hidden info message space
Actual: The panel header expands to fill the space and the popup height remains constanst
The reason for this is that when navigating to a sub-panel, PanelMultiView sets a min-height matching the current popup height on the .panel-viewcontainer
box to ensure the panel doesn't shrink upon navigation. After navigating back to the main view, this style is never cleared, resulting in the popup trying to maintain that min-height
when its contents change.
The solution could be for PanelMultiView to clear this min-height
when navigating back to the main view. This would also be a good opportunity to fire an event or set an attribute indicating we are in the main view, which would help solve bug 1563093.
Gijs and Mike, could you help me figure out the best way to do this? I think PanelMultiView should give consumers a way to know that the panel is currently on the main view, for styling etc.
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Clearing needinfo, I think I figured out a solution that doesn't need more information.
Updated•6 years ago
|
Comment 4•6 years ago
|
||
bugherder |
Description
•