Issue
I am styling a TreeTableView
in CSS and I want to remove the spacing for all children. See image below.
Also are there any CSS generators for JavaFX?
src="https://i.stack.imgur.com/p82KX.png" alt="enter image description here">
I have tried this :
.tree-table-view {
-fx-padding: 0px;
-fx-start-margin: 0px;
-fx-end-margin: 0px;
}
.tree-table-cell {
-fx-padding: 0px;
-fx-font-size:16px;
-fx-start-margin: 0px;
-fx-end-margin: 0px;
}
Solution
You can remove the indent with
.tree-table-row-cell {
-fx-indent: 0;
}
Note: The width of the arrow area will still be indented, but in my opinion it is expected and necessary:
If you lower the indent even more (-10, -20) you can also remove the arrows if needed.
Answered By - DVarga
Answer Checked By - Pedro (JavaFixing Volunteer)