Cherrio LLC
02/08/2023, 6:11 PMsimpleLayout
code in threadCherrio LLC
02/08/2023, 6:12 PMsimpleLayout { container ->
val view = container.children.first()
println("Container=${container.size}")
view.bounds = Rectangle(0.0,0.0, container.width,container.height)
}
Cherrio LLC
02/08/2023, 6:13 PMCherrio LLC
02/08/2023, 6:13 PMNick
02/08/2023, 8:07 PMdisplay += container {
children += view {
render = { rect(bounds.atOrigin, fill = Red.paint) }
}
layout = simpleLayout { container ->
val view = container.children.first()
view.bounds = Rectangle(0.0,0.0, container.width - 5, container.height - 5)
}
render = { rect(bounds.atOrigin, fill = Lightgray.paint) }
size = Size(100)
Resizer(this)
}
Are you sure you don't have some other logic (in the view itself, or outside this layout block) that modifies the view's height?Cherrio LLC
02/08/2023, 9:17 PM