Closed Bug 1898604 Opened 6 months ago Closed 5 months ago

[toolbar redesign] With tab strip enabled in tablet toolbar is not hiding correctly

Categories

(Fenix :: Toolbar, defect)

All
Android
defect

Tracking

(firefox129 fixed)

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: royang, Assigned: mavduevskiy)

References

Details

(Whiteboard: [fxdroid])

Attachments

(3 files)

With tabs strip enabled, scroll smoothly in sites like Wikipedia.
The expected behaviour is that the toolbar and tab strip will hide while scrolling up. However, when toolbar redesign is enabled the hiding behaviour is incorrect.

Severity: -- → S2
Whiteboard: [fxdroid]
Assignee: nobody → mavduevskiy

The problem was caused casting in EngineViewClippingBehavior. It assumed that ToolbarContainerView could be only at the bottom, but Tabstrip added one on top as well. Removed casting from onDependentViewChanged, now it calculates the dependant position with a simple equasion.

Tests became quite verbose, refactored repeated object creation into class parameters and helper functions.

Attachment #9404632 - Attachment description: Bug 1898604 - Refactor tests → Bug 1898604 - Refactor EngineViewClippingBehaviorTest tests to be more concise
Pushed by mavduevskiy@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/87287ee27746 Fix tabstrip scrolling for tablets r=android-reviewers,Roger https://hg.mozilla.org/integration/autoland/rev/9587f4babf2e Refactor EngineViewClippingBehaviorTest tests to be more concise r=android-reviewers,gl,harrisono
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: