ron
08/30/2016, 6:52 PMRuckus
08/30/2016, 6:52 PMtitledpane
would probably make more sense. @edvin Would that be a special case in EventTarget.addChildIfPossible
?ron
08/30/2016, 6:53 PMron
08/30/2016, 6:53 PMedvin
08/30/2016, 6:54 PMfun EventTarget.titledpane(title: String, node: Node): TitledPane = opcr(this, TitledPane(title, node))
edvin
08/30/2016, 6:54 PMRuckus
08/30/2016, 6:55 PMis Accordian -> { if (node is TitledPane) panes += node }
edvin
08/30/2016, 6:56 PMRuckus
08/30/2016, 6:56 PMRuckus
08/30/2016, 6:56 PMron
08/30/2016, 6:59 PMis Accordion
syntax?edvin
08/30/2016, 7:02 PMedvin
08/30/2016, 7:02 PMwhen
expression in this particular case)ron
08/30/2016, 7:10 PMron
08/30/2016, 7:11 PMron
08/30/2016, 7:11 PMron
08/30/2016, 7:11 PMedvin
08/30/2016, 7:16 PMprefWidth
is honored depends on the container it is in I think. Is this View part of a bigger scene graph? How does it look?ron
08/30/2016, 7:17 PMRuckus
08/30/2016, 7:18 PMprefWidth
honors the size of its children. With labels, the prefWidth
is > 0 as it shrinks down to an ellipsis. To make it disappear, use maxWidth = 0.0
instead.user
08/30/2016, 7:21 PMisVisible
and prefWidth
are being set outside the root, and the last }
would close the class.ron
08/30/2016, 7:22 PM