edvin
08/27/2017, 1:35 PMmodel.mainControl
facade property.edvin
08/27/2017, 1:35 PMmatthjes
08/27/2017, 1:35 PMmatthjes
08/27/2017, 2:05 PMint("id")
returns Int?
, but for the assigment to the property you need Int
, so (at least I had to write) id = int("id") ?: 0
edvin
08/27/2017, 2:08 PMmatthjes
08/27/2017, 2:22 PMmatthjes
08/27/2017, 2:29 PMInvalidationListener
for this...Marcin Wisniowski
08/27/2017, 3:17 PMisFitToWidth = true
so it only scrolls vertically and the width of the ScrollPane should be the same as the width of the content, but the ScrollPane always ends up a few pixels short of the content width, which causes my Labels to ellipsize for example. This sounds like a very simple thing but I can't make it work. How do I make a ScrollPane fit to the width of it's content (because I only want vertical scrolling)? Surely I'm missing something. 😞Marcin Wisniowski
08/27/2017, 3:24 PMedvin
08/27/2017, 3:30 PMMarcin Wisniowski
08/27/2017, 3:39 PMedvin
08/27/2017, 3:46 PMthis += label()
- the builders automatically add themselves to their parent. Remove this +=
🙂edvin
08/27/2017, 3:46 PMMarcin Wisniowski
08/27/2017, 3:47 PMMarcin Wisniowski
08/27/2017, 3:47 PMthis +=
comment!edvin
08/27/2017, 3:49 PMusePrefSize = true
on the labels to have them insist on their preferred size 🙂edvin
08/27/2017, 3:50 PMsetMinSize(Region.USE_PREF_SIZE, Region.USE_PREF_SIZE)
.Marcin Wisniowski
08/27/2017, 3:51 PMisFitToWidth = true
prevent that?edvin
08/27/2017, 3:54 PMMarcin Wisniowski
08/27/2017, 3:57 PMusePrefSize = true
in my actual code (where the ScrollPane is not the root) and I get the exact same behavior: Nothing is cut off (great!), but I get a horizontal scrollbar (bad).edvin
08/27/2017, 3:57 PMedvin
08/27/2017, 3:58 PMMarcin Wisniowski
08/27/2017, 4:00 PMedvin
08/27/2017, 4:01 PMMarcin Wisniowski
08/27/2017, 4:02 PMMarcin Wisniowski
08/27/2017, 4:02 PMuser
08/27/2017, 4:03 PMedvin
08/27/2017, 4:04 PM