我正在测试带有工作区的抽屉,我注意到当右抽屉和底部抽屉的floatDrawers标志为true时,单击它们不会显示内容,但是当标志为false时,它将正常工作。 左侧抽屉可以同时使用该标志的两个值。
我是否错过了指南中的某些内容,或者是一个错误?
TornadoFX 1.7.19 Kotlin 1.3.31(也在1.3.20中进行了测试)
示例代码:
import tornadofx.*
class MyApp: App(TestWorkspace::class)
class TestWorkspace: Workspace("Test Workspace" ) {
init {
with( leftDrawer ) {
floatingDrawers = true
item( "Drawer 1" ) {
label {
text = "Text 1"
}
}
}
with( rightDrawer ) {
floatingDrawers = true
item( "Drawer 2" ) {
label {
text = "Text 2"
}
}
}
with( bottomDrawer ) {
floatingDrawers = true
item( "Drawer 3" ) {
label {
text = "Text 3"
}
}
}
}
}
谢谢:)