kioba
09/08/2019, 5:31 PMWrap
and Container
result in a 0 sized child. is this the expected behavior?kioba
09/08/2019, 5:32 PMContainer {
Draw { canvas: Canvas, parentSize: PxSize ->
canvas.drawRect(parentSize.toRect(), Paint().apply { color = Color.Cyan })
}}
Wrap {
Draw { canvas: Canvas, parentSize: PxSize ->
canvas.drawRect(parentSize.toRect(), Paint().apply { color = Color.Cyan })
}}
kioba
09/08/2019, 5:33 PMparentSize
is (0, 0, 0, 0):
Wrap {
Container {
Draw { canvas: Canvas, parentSize: PxSize ->
canvas.drawRect(parentSize.toRect(), Paint().apply { color = Color.Cyan })
}}}
kioba
09/08/2019, 5:44 PMWrap {
Container(expanded = true) {
// …
}
}
couldn’t figure out yet the wrap behaviorFudge
09/08/2019, 5:51 PMkioba
09/08/2019, 6:54 PMkioba
09/08/2019, 7:30 PMwrap + draw = expanded // shouldn't be compressed?
container + draw = expanded
wrap + container + draw = compressed
Fudge
09/08/2019, 8:07 PMDraw
is not a child in the composition phase. It's merely a callback for when the drawing happens, which is after the composition phase.Fudge
09/08/2019, 8:08 PMDraw
is "nothing"Fudge
09/08/2019, 8:09 PMCard
kioba
09/08/2019, 8:55 PMContainer(expanded = false) + Nothing
also expands the entire free space which also questionableFudge
09/08/2019, 10:18 PMFudge
09/08/2019, 10:19 PMFudge
09/08/2019, 10:20 PMWrap {
Draw { canvas: Canvas, parentSize: PxSize ->
canvas.drawRect(parentSize.toRect(), Paint().apply { color = Color.Cyan })
}}
Here Draw
should not be expanded, unless I'm missing somethingFudge
09/08/2019, 10:20 PMMihai Popa
09/09/2019, 9:24 PMMihai Popa
09/09/2019, 9:25 PMMihai Popa
09/09/2019, 9:29 PMMihai Popa
09/09/2019, 9:31 PMMihai Popa
09/09/2019, 9:33 PM