Open
Description
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
Labels
No labels