8000 Wrong positon on apply anchor · Issue #8 · korlibs/korge-compose · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Wrong positon on apply anchor #8
Open
@Gidroshvandel

Description

@Gidroshvandel

Modifiers are applied before the parent element calculates its own size.

for examle

setComposeContent {
            VStack(modifier = Modifier.anchor(Anchor.BOTTOM_CENTER)) {
                Text("Test", modifier = Modifier)
                Text("Test1", modifier = Modifier)
                Text("Test2", modifier = Modifier)
                Text("Test3", modifier = Modifier)
            }
}

this code draws the VStack out the screen border because the anchor is applied when the VStack's height is 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0