After doing the following in the TypeSafeCss kotlin code it wont be used.
If i do the same inside an css file it will work.
minWidth = (-1).px
But if you open the Layout Debugger it is going to be used.
Code for Reproduction:
import tornadofx.*
class TestView : View("My View") {
override val root =
anchorpane {
menubar {
menu("One Very Big Menu")
menu("Two Very Big Menu")
menu("Three Very Big Menu")
}
}
}
class TestApp : App(TestView::class, TestStyle::class)
class TestStyle : Stylesheet() {
companion object {
val menuButton by cssclass()
}
init {
s(menuButton) {
minWidth = (-1).px
}
}
}
After doing the following in the TypeSafeCss kotlin code it wont be used. If i do the same inside an css file it will work.
But if you open the Layout Debugger it is going to be used.
Code for Reproduction:
TornadoFX Version: 1.7.18