You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
When bottom sheet would get laid out not at the top of parent view it gets positioned too low. In the example I'm using fixed height that's smaller than screen height and layout_gravity="bottom" to achieve this effect. Dragging the sheet fixes its position, but calling requestLayout will move it to wrong place again.
Expected behavior:
Bottom sheet position is correct and doesn't change when calling requestLayout().
Minimal sample app repro:https://github.com/tabasavr/BottomSheet-layout-position-bug
This app is also set up to call requestLayout() when bottom sheet is clicked. Height used works for Pixel 8 emulator, it might need to be adjusted for other devices
Android API version: 21, 34, probably all of them
Material Library version: 1.13.0-alpha04, 1.12.0
Device: Emulators API 21 and 34
The text was updated successfully, but these errors were encountered:
Description:
When bottom sheet would get laid out not at the top of parent view it gets positioned too low. In the example I'm using fixed height that's smaller than screen height and
layout_gravity="bottom"
to achieve this effect. Dragging the sheet fixes its position, but callingrequestLayout
will move it to wrong place again.Expected behavior:
Bottom sheet position is correct and doesn't change when calling
requestLayout()
.Source code:
Minimal sample app repro: https://github.com/tabasavr/BottomSheet-layout-position-bug
This app is also set up to call
requestLayout()
when bottom sheet is clicked. Height used works for Pixel 8 emulator, it might need to be adjusted for other devicesAndroid API version: 21, 34, probably all of them
Material Library version: 1.13.0-alpha04, 1.12.0
Device: Emulators API 21 and 34
The text was updated successfully, but these errors were encountered: