edvin
11/09/2016, 12:07 PMedvin
11/09/2016, 12:08 PMedvin
11/09/2016, 12:09 PMedvin
11/09/2016, 12:14 PMedvin
11/09/2016, 12:14 PMaddClass(Styles.displayBox)
inside the vbox
builder. Then you don't need to muck up the sample with look and feel code at all.carlw
11/09/2016, 12:15 PMcarlw
11/09/2016, 12:18 PMcarlw
11/09/2016, 12:18 PMcarlw
11/09/2016, 12:19 PMcarlw
11/09/2016, 12:23 PMcarlw
11/09/2016, 12:23 PMedvin
11/09/2016, 12:37 PMchildren
will be the list of vboxes, and you don't need init, with(root) and val tp. You also don't need parenthesis before the block in the forEach. You might also do `with(it as VBox) { setAttributesHere() }. How it can set the dropshadow on the label I can't even understand, since you explicitly set it on the vbox. I also tried this with "my" syntax earlier and it worked with exactly the same visual result.edvin
11/09/2016, 12:39 PMedvin
11/09/2016, 12:40 PMResult of the above▾
edvin
11/09/2016, 12:41 PMedvin
11/09/2016, 12:42 PMbackground
property when you only override the background color, so backgroundColor += Color.TAN
might be less confusing, and much easier on the eye.edvin
11/09/2016, 12:42 PMcarlw
11/09/2016, 12:55 PMcarlw
11/09/2016, 12:56 PMedvin
11/09/2016, 12:58 PMvboxConstraints
anymore, we can just use margin
directly.edvin
11/09/2016, 12:59 PMedvin
11/09/2016, 12:59 PMedvin
11/09/2016, 1:03 PMedvin
11/09/2016, 1:05 PM5px label margin▾
edvin
11/09/2016, 1:15 PMcarlw
11/09/2016, 1:40 PM