https://kotlinlang.org logo
#tornadofx
Title
# tornadofx
a

aayush

08/24/2017, 12:15 PM
@edvin I am using gridpane and have arranged the tabbedview in it. So when i use fire(AddTab(SampleTabView1::class) it doesn't work. I also added a print on that button click function and also added a static tab to the TabbedView so that I would know if TabbedView is visible or not. When I am using hbox or vbox , It works. In gridpane I am adding views like this
Copy code
class MainView : View() {

    override val root = gridpane()
    val tv: TabbedView by di("tabView")
    val sv: ShortcutView by di("shortcutView")

    init {
        with(root) {           
      
            add(tv.root, 0, 0)
            add(sv.root, 1, 0)
            isGridLinesVisible=true
            columnConstraints.addAll(
                    newColConstraints(05.0), newColConstraints(15.0), newColConstraints(70.0))
            rowConstraints.addAll(newRowConstraints(100.0))
        }
    }
}