arxenix
09/25/2018, 11:01 PMval 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:
this@gridpane += text(item.title) {
gridpaneConstraints {
columnRowIndex(idx % 5, idx / 5)
columnSpan = 1
rowSpan = 1
}
}