edvin / tornadofx2

TornadoFX 2.0
Apache License 2.0
154 stars 40 forks source link

enableTextWrap seems to ignore standard CSS rules in tableview cells #49

Open jasin opened 2 years ago

jasin commented 2 years ago

I have the following code that displays a table column. setWrapText is ignored entirely and using enableTextWrap sets the text to black regardless of any CSS or any behaviors like CSS selected hover etc. Is there anything I am missing?

readonlyColumn("Question", RequestForInformationEntity::rfiQuestion) {
    cellFormat {
        text = it
        alignment = Pos.BASELINE_LEFT
        isWrapText = true
    }
    enableTextWrap()
    weightedWidth(1.0)
}