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

Modifiers not flattened properly #535

Open
usmansc opened this issue Apr 30, 2023 · 0 comments
Open

Modifiers not flattened properly #535

usmansc opened this issue Apr 30, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@usmansc
Copy link

usmansc commented Apr 30, 2023

Describe the bug
To me it seems that the modifiers are not flattened properly.

To Reproduce

import TokamakDOM

@main
struct TokamakApp: App {
    var body: some Scene {
        WindowGroup("Tokamak App") {
            VStack {
                Text("Hello, world!")
            }
            .frame(maxWidth: .infinity, maxHeight: .infinity)
            .background(Color.red)
        }
    }
}

The above code produces the following output
Result of code execution

Expected behavior
In my opinion the width should be applied to the highlighted row, however it is applied to the div below

Desktop (please complete the following information):

  • OS: [macOS 13.3.1]
  • Browser [chrome, safari]
  • Version of the browser [112.0.5615.137 and 16.4]
  • Version of Tokamak [0.11.0]
@usmansc usmansc added the bug Something isn't working label Apr 30, 2023
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

2 participants