Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BottomSheet Misbehave when swapping headers #795

Open
YBTopaz8 opened this issue Oct 5, 2024 · 3 comments
Open

BottomSheet Misbehave when swapping headers #795

YBTopaz8 opened this issue Oct 5, 2024 · 3 comments
Labels
Milestone

Comments

@YBTopaz8
Copy link

YBTopaz8 commented Oct 5, 2024

Hi,
As briefly explain earlier, bottom sheet doesn't seem to resize properly when closed
So I wanted to have a view for when it's closed (so user can drag up) and a a view for when opened
As such, I added a VSL and a Border with IsVisible changing based on the btmsheet's IsPresented
Issue is, when the btmsheet opens, only the border should show, and when closed, only the VSL.
Problem:
When the btmsheet closes, only the vsl is shown but the btmsheet height is still very high.
I tried manually setting multiple props but no success.

Issue seems to occur when header is Tapped but not when it's dragged down..
Maybe if I don't include the base.OnOpen() so as to not attach the Gesture it will be a workaround?
Doesn't work.

Screen.Recording.2024-10-05.063758.mp4
@YBTopaz8
Copy link
Author

YBTopaz8 commented Oct 5, 2024

Here is a sample Repo
https://github.com/YBTopaz8/SampleBuggingProj

@YBTopaz8
Copy link
Author

YBTopaz8 commented Oct 6, 2024

I "fixed" MY issue by building a new btmsheet similar to yours but with MY edits here and there and now it works well with pretty much no issues :)
(Video compression messes the video but still!)

screen-20241006-100026.mp4

@enisn enisn added enhancement New feature or request attachment-bottomsheet labels Oct 7, 2024
@enisn enisn added this to the v2.11 milestone Oct 7, 2024
@YBTopaz8
Copy link
Author

YBTopaz8 commented Oct 7, 2024

By the way, if that helps,
Here is the link to my implementation of NowPlayingBtmSheet
https://github.com/YBTopaz8/Dimmer-MAUI/blob/main/Dimmer/Views/Mobile/CustomViewsM/NowPlayingBtmSheet.cs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants