Sergio Casero
11/22/2018, 4:53 PMTornadoFX App
run configurations, I get -> Caused by: java.lang.NoClassDefFoundError: com/sergiocasero/network/ApiService
3. If I use FxLauncer -> Same than 2edvin
11/22/2018, 6:10 PMRuckus
11/23/2018, 7:01 PMRuckus
11/23/2018, 7:02 PMcarldea
11/23/2018, 7:56 PMamanda.hinchman-dominguez
11/24/2018, 5:33 PMdr.fornax
11/24/2018, 6:11 PMdr.fornax
11/24/2018, 6:14 PMedvin
11/25/2018, 10:50 AMedvin
11/25/2018, 10:52 AMstrokeWidth = Dimension(2.0, Dimension.LinearUnits.px)
. We have extension functions for those, so you should just write strokeWidth = 2.px
Ruckus
11/25/2018, 8:08 PMproperty = multi(value)
You can just use
property += value
Ruckus
11/26/2018, 3:41 AMthomasnield
11/26/2018, 4:36 PMComboBox
does not like null values at all. Try selecting null
in the dropdown and it will throw an error.thomasnield
11/26/2018, 5:03 PMthomasnield
11/26/2018, 5:06 PMedvin
11/26/2018, 5:42 PMnull
as an item is totally valid for choicebox
🙂Shan
11/26/2018, 8:59 PMmenu, menuButton, otherThing { some styles }
where I would apply a specific set of styles to multiple css classes just by adding them to the list before the style declaration. As far as I can tell, the only way to achieve something like this in Kotlin would be to make a function that would loop through every css element argument and apply the styles to each one. Is there a reason TornadoFX's type safe css doesn't allow this sort of functionality (Kotlin coding conventions I would assume, but maybe there is a different reason? For safety, or something), or are there plans to add something like this in the future? I would be interested in hearing any sort of arguments against this sort of thing, as well! God knows there are thousands of code safety hazards in web development.Spike Baylor
11/27/2018, 1:17 PMShan
11/27/2018, 7:56 PM= widthProperty() - customSubtractValue)
, or is there a way to do this without having to create a custom property (if this is even possible 😬)? This is what I'm trying to do, but obviously it will not work as I cannot subtract a .px
val from an observable property. prefWidthProperty().bind(primaryStage.widthProperty() - sideBarWidth)
Spike Baylor
11/28/2018, 4:48 PMjschneider
12/03/2018, 12:57 PMFRQDO
12/05/2018, 5:30 AMclass MyApp : App(Workspace::class, Styles::class) {
init {
with (workspace) {
// This does NOT remove the forwardButton
forwardButton.removeFromParent()
// This does
header.items.remove(forwardButton)
// And so does this
header.getChildList()?.remove(forwardButton)
}
}
}
However, the implementation of removeFromParent()
says
when (this) {
[…]
is Node -> {
(parent?.parent as? ToolBar)?.items?.remove(this) ?: parent?.getChildList()?.remove(this)
}
[…]
}
The forwardButton
is a Node
and is created within a toolbar
builder, so its parent should be set to that toolbar. Therefore, I’m a bit confused by the parent?.parent
part on the left of the Elvis operator.
I then tried printing the forwardButton
(which is a Button
), its parent (which is null
) and its parent’s parent (which in that case obviously doesn’t exist).
So, at which point in the Workspace
does the forwardButton
become an orphan?pike
12/05/2018, 6:23 AMcarlw
12/05/2018, 11:34 AMcarlw
12/08/2018, 4:02 AMBoyong
12/08/2018, 9:28 AMedvin
12/08/2018, 7:08 PMCarlton Whitehead
12/09/2018, 4:09 PMhudsonb
12/09/2018, 5:23 PMRoman
12/10/2018, 5:59 AMRoman
12/10/2018, 5:59 AMCzar
12/10/2018, 6:54 AMRomanow
12/10/2018, 10:53 AM