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

Scrolling broken when List is child of NavigationView #208

Closed
Outcue opened this issue Jul 23, 2020 · 1 comment
Closed

Scrolling broken when List is child of NavigationView #208

Outcue opened this issue Jul 23, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@Outcue
Copy link
Contributor

Outcue commented Jul 23, 2020

Observe the scrolling behavior of the following layout. The List extents are not being set properly when the parent window is resized. Comment out the NavigationView parent and observe the correct scrolling behavior.

struct TokamakDemoView: View {
    var body: some View {
        NavigationView {
            List {
                Text("One").padding()
                Text("Two").padding()
                Text("Three").padding()
                Text("Four").padding()
                Text("Five").padding()
                Text("Six").padding()
                Text("Seven").padding()
                Text("Eight").padding()
                Text("Nine").padding()
                Text("Ten").padding()
                
            }
            .padding(20)
        }
    }          
}
@MaxDesiatov MaxDesiatov added the bug Something isn't working label Jul 24, 2020
@MaxDesiatov MaxDesiatov changed the title Scrolling behavior incorrect when List is child of NavigationView Scrolling broken when List is child of NavigationView Jul 24, 2020
@MaxDesiatov
Copy link
Collaborator

This is no longer reproducible in main.

@j-f1 j-f1 closed this as completed Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants