Respecting table cell padding
This commit is contained in:
parent
7fcaa2ddf7
commit
ce54ba60a7
|
@ -88,7 +88,10 @@ class MainView : View() {
|
||||||
cell.graphic = Text().apply {
|
cell.graphic = Text().apply {
|
||||||
textProperty().bind(cell.itemProperty())
|
textProperty().bind(cell.itemProperty())
|
||||||
fillProperty().bind(cell.textFillProperty())
|
fillProperty().bind(cell.textFillProperty())
|
||||||
wrappingWidthProperty().bind(tableColumn.widthProperty())
|
val widthProperty = tableColumn.widthProperty()
|
||||||
|
.minus(cell.paddingLeftProperty)
|
||||||
|
.minus(cell.paddingRightProperty)
|
||||||
|
wrappingWidthProperty().bind(widthProperty)
|
||||||
}
|
}
|
||||||
cell.prefHeight = Control.USE_COMPUTED_SIZE
|
cell.prefHeight = Control.USE_COMPUTED_SIZE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue