edvin
02/10/2017, 6:21 PMhastebrot
02/10/2017, 6:25 PMscene.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
.hastebrot
02/10/2017, 6:32 PMParent
and Scene
is: Parent
has no width
field. The actual node we use as `Parent`/`root` is often a `Pane`/`Region` which has a width
field, but we first have to explicitly cast Parent
to Region
.ron
02/10/2017, 6:33 PMcarlw
02/10/2017, 6:35 PMhastebrot
02/10/2017, 6:37 PMcanvas.width
will call Node#impl_geomChanged()
which will eventually cause Node#layoutBoundsProperty()
to call its listeners. So it's save to use layoutBoundsProperty()
to clean and redraw the Canvas' graphics, I guess.hastebrot
02/10/2017, 6:39 PMedvin
02/10/2017, 6:58 PMwhenDocked { }
. Then you're sure it will be connected to a scene. Either that, or override onDock
if you want to do it outside of the builder hierarchy. whenDocked
can be used inside any builder.carlw
02/10/2017, 6:59 PMedvin
02/10/2017, 10:55 PMedvin
02/10/2017, 10:56 PMedvin
02/10/2017, 10:57 PMedvin
02/10/2017, 10:57 PMcarlw
02/10/2017, 10:58 PMcarlw
02/10/2017, 10:59 PMedvin
02/10/2017, 10:59 PMcarlw
02/10/2017, 10:59 PMedvin
02/10/2017, 10:59 PMcell
edvin
02/10/2017, 11:00 PMedvin
02/10/2017, 11:00 PMcarlw
02/10/2017, 11:00 PMRuckus
02/10/2017, 11:01 PMclose()
call on an item in a workspace to automatically go back in the view stack and then remove itself from the view stack?edvin
02/10/2017, 11:01 PMdockingSide
, and I lay it out based on that.edvin
02/10/2017, 11:02 PMleft
or right
borderpane slot, and now possibly the lower.Ruckus
02/10/2017, 11:02 PMcarlw
02/10/2017, 11:02 PMedvin
02/10/2017, 11:02 PMedvin
02/10/2017, 11:03 PMgraphic
node they already inherit from Labeled
.carlw
02/10/2017, 11:04 PM