I'm having 1 more issue in my project. any idea wh...
# tornadofx
a
I'm having 1 more issue in my project. any idea why these gridPane constraints dont seem to get applied?
Copy code
val card = find<ResultCardFragment>(mapOf(ResultCardFragment::item to item))
                    this@gridpane += card.apply {
                        gridpaneConstraints {
                            columnRowIndex(idx % 5, idx / 5)
                            columnSpan = 1
                            rowSpan = 1
                        }
                    }
Something simple like this works as expected:
Copy code
this@gridpane += text(item.title) {
                        gridpaneConstraints {
                            columnRowIndex(idx % 5, idx / 5)
                            columnSpan = 1
                            rowSpan = 1
                        }
                    }