Nick
02/23/2023, 4:56 PMprintln
statements to verify that your code is being executed? last thing to consider is whether display.size
is empty by chance. that would mean your view has no size. as defined, your view's size will be a fixed value and won't change as you resize the window. you can fix that by doing:
class HelloDoodle(display: Display): Application {
init {
val view = view {
render = {
text("Hello, Doodle!", color = Black)
}
}
display += view
display.fill(White.paint)
display.layout = constrain(view, fill) // adds a constraint based layout that causes view to fit the display
}
override fun shutdown() {}
}
Nazar Pohonchuk
02/23/2023, 6:16 PM