Closed khonkhortisan closed 2 years ago
There are two layers of scrolling going on here, controlled by the same input:
Steps to reproduce:
reference: https://material.io/components/sheets-bottom I tested this in bluestacks at 540×960 resolution, and noticed that the library FILTER works correctly. When all the filters are expanded: A. half popup: ⇑ pushing the titlebar up moves the popup to the top of the screen ⇓ pushing the titlebar down closes the popup
B. fullscreen popup: ⇑ pushing the titlebar up does nothing ⇓ pushing the titlebar moves it to the middle of the screen
This ended up complicated enough that I made a flowchart for both the library and extension popup behavior in graphviz shosetsu-155-top-of-screen.gv.txt When the popup is half-open with the checkboxes scrolled too high:
When everything is as high as it'll go:
The filter menu is composed currently of two different view types.
The actual "Popup" is an android BottomSheetDialog, while the contents are composed of Compose views.
Because of this, I believe the BottomSheetDialog scroll mechanics are coming into play and interfering with how Compose is handling view scrolling.
As it currently stands, I do not know how to properly handle this.
Describe the bug When a filter group is expanded so that the top of the filter list can go off the top of the screen, the top of the filter list is cropped when it's off the top of the screen and then scrolled back into view. This happens whether it was pushed off the screen by expanding or by scrolling
To Reproduce Steps to reproduce the behavior:
Expected behavior The filter menu would scroll or expand past the top of the screen, then scroll or collapse safely back without cropping the top of the menu.
Screenshots It can crop in the middle of an element, not just between them
Device information:
AND
Additional context Add any other context about the problem here.