I just noticed a small issue with builders that cr...
# tornadofx
e
I just noticed a small issue with builders that create fake panes. Concrete example, the
top
builder for
BorderPane
. The
op
block is executed on a
VBox
, and if the
op
invocation only adds a single Node to that
VBox
, that single Node is set as the
top
property of the
BorderPane
. If you add multiple children, the
VBox
is kept. The problem arises if you add only a single Node, but manipulate the VBox somehow, for example by adding classes to it or setting properties. Those classes and properties are lost when the VBox is then discarded.