[toolbar redesign] Microsurvey is not anchored to the navbar when address bar is at top
Categories
(Firefox for Android :: Toolbar, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox143 | --- | fixed |
People
(Reporter: petru, Assigned: azinovyev)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxdroid][group3])
Attachments
(4 files)
Steps to reproduce
- ensure the address bar is set to be shown at the top
- enable the toolbar redesign and the microsurvey feature from secret settings
- while in a browser tab tap to print
- close the print UX
Expected behavior
A microsurvey banner is shown on top (y axis) of the navigation bar
Actual behavior
The microsurvey banner is shown above (z axis) of the navigation bar covering it
Any additional information?
A similar issue does not exist if the address bar is set to be shown at the bottom.
Updated•4 months ago
|
| Assignee | ||
Updated•3 months ago
|
| Reporter | ||
Comment 2•3 months ago
|
||
(In reply to Roger Yang [:royang] from comment #1)
Looks like snackbars have the same problem.
For me the snackbar is correctly anchored to the navbar when the address bar is shown at the top of the screen.
But I think there might be a race and I'm just lucky while you aren't 😛
Seems like both the addressbar and the navbar are added to the layout with the same id (which somehow works) and maybe in your case the SnackbarBehavior tries to anchor the snackbar to the top addressbar? I would be curious to see how it looks for you.
| Reporter | ||
Comment 3•3 months ago
|
||
For now we're following the same flow as with the bottom toolbar.
A bigger refactoring to come later.
| Reporter | ||
Comment 4•3 months ago
|
||
From the previous navigation bar implementation we had the toolbar_navbar_container
view id still lingering in the application but unused.
Since we saw that when using the new navigation bar it would be added in the layout
with the same id as the composable toolbar we'll go with using the pre-existent
navigation bar id to distinguish between the two and ensure application popups will be
correctly anchored.
Renamed the toolbar_navbar_container to navigation_bar because with the new
implementation we don't have a container.
Comment 6•3 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/5853b4e5fe04
https://hg.mozilla.org/mozilla-central/rev/35f9750e2935
Description
•