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

FloatingPanel - Content without container is troublesome #551

Open
dfeinzimer opened this issue Dec 20, 2023 · 0 comments
Open

FloatingPanel - Content without container is troublesome #551

dfeinzimer opened this issue Dec 20, 2023 · 0 comments

Comments

@dfeinzimer
Copy link
Collaborator

If the content provided to the Floating Panel isn't placed within some from of container then there's unexpected behavior. The selected detent doesn't work properly and the resize handle moves out of sync with the finger location.

With container

// initial detent set to half
VStack {
    Text("Title")
    List {
        Text("Item 1")
        Text("Item 2")
        Text("Item 3")
    }
}

Without container

// initial detent set to half
Text("Title")
List {
    Text("Item 1")
    Text("Item 2")
    Text("Item 3")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant