I constructed different canvas examples (canvas di...
# tornadofx
h
I constructed different canvas examples (canvas directly in scene, canvas in HBox, canvas in SplitPane, ...) to understand the layout handling for Canvas. In some cases I can use
scene.widthProperty()
to update the canvas width, in some
parent.widthProperty()
, in some I have to use
width
in
parent.layoutBoundsProperty()
, in some I need to use a custom Canvas class. So, I wanted to compare
scene.width
with
root.width
.