woocommerce-android
woocommerce-android copied to clipboard
[Bookings] Fix padding issue on booking filter pages
Description
This fixes a padding issue that occurs when navigating to filter pages after tapping the search field.
The unwanted top gap was caused by nested Scaffolds, where the inner Scaffold was reapplying system window insets on top of the parent's padding. This is resolved by setting the inner Scaffold's contentWindowInsets to zero, preventing the double application of safe area insets.
Test Steps
I suggest you try this on trunk first.
To reproduce the issue:
- Log in with a CIAB store.
- Go to Bookings.
- Tap the Search field.
- While the text cursor is still active on the search field, tap the Filters button.
- Tap Team Members.
Images/gif
| Before | After |
|---|---|
- [x] I have considered if this change warrants release notes and have added them to
RELEASE-NOTES.txtif necessary. Use the "[Internal]" label for non-user-facing changes.