<@U25U0KPFT> here is no problem with resizing. Pro...
# tornadofx
i
@carlw here is no problem with resizing. Problem was in child bounds of datagrid cells. Them moved a little bit out of parent conteiner. In your example also.
c
Are you having two issues? You wrote about bounds in regards to an array earlier. If this example has a problem with geometric bounds, it's probably from the Region.
i
Yes, I'm have several issues. And most annoing for me the problem with bounds and with action handaling(which I'm described below) Even if I use any other element instead of Region, the problem still appear. And thank you for your attention to my problems!)
c
In this example, pressing on B activates the button. Can you verify this?
class DataGridHelloWorldView : View("DataGrid Hello World") { val data = listOf( "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m" ).observable() override val root = vbox { datagrid(data) { cellFormat { graphic = vbox { label(it) hbox(alignment = Pos.CENTER) { button("Update") region { hboxConstraints { hGrow = Priority.ALWAYS } } button("B") { alignment = Pos.TOP_RIGHT style { padding = box(4.px) } background = null action { println("called") } } } form { fieldset { field("TextField") { textfield() } field("Combobox") { combobox<String>() } } } } } } padding = Insets(10.0) } } class DataGridHelloWorld : App(DataGridHelloWorldView::class) fun main(args: Array<String>) { launch<DataGridHelloWorld>(args) }
(Can't do proper code snippets in threads.)
i
@carlw Unfotunatly println from action of B button still not called. Using tornadofx 1.7.16 Developing under Windows 10 system
Button B looking pressed but action not called
i'm think this problem are bound with bounds issue
c
try putting the background back on the button. i didn't have any problem getting the println(). i'm on windows 10 today
w. 1.7.16. Does my exact test program not write the println() out?
i
Yep)
Copy code
action {
                                println("called")
                            }
not called
Can record video if you want))
What you mean by putting backgroud back?
Sry
Not B button
But Update button
Have no problems with b button