Hello, i have borderpane with current top ( hello ...
# tornadofx
r
Hello, i have borderpane with current top ( hello world - text, update, logs, exit buttons) How i can align text to left top and buttons to right top ? i tried to use something like this
Copy code
top {
                hbox {

                    vbox(alignment = Pos.TOP_LEFT) {
                        text("Hello")
                        text("World")
                    }

                    hbox(3, alignment = Pos.TOP_RIGHT) {


                        button("Update") {
                            action {
                                homeController.updateCurrentDevices()
                            }
                        }

                        button("Logs") {
                            action {
                                logView.openModal(stageStyle = StageStyle.DECORATED)
                            }
                        }

                        button("Exit")
                    }
                }
            }
t
I usually solve this problem like so:
Copy code
hbox {
            label("label")
            region { hgrow = Priority.ALWAYS }
            button("button")
        }
can't i post code snippets in threads?
s
yeah usually the answer is just to mix layouts. usually i use another borderpane but hbox might be cleaner
r
thx