I would like to add padding between TitledPane
s in an Accordion
(spacing in Accordion
).
The problem is that, when a TitledPa
It's a bug (I've created a bug report: JDK-8162599).
As a workaround, if you specify only the bottom padding of TitledPane
s (rather than the top), the spacing between TitledPane
s in the Accordion
is correct.
CSS to add bottom padding
.accordion > .titled-pane {
-fx-padding: 0 0 0.5em 0;
}
An example Accordion
looks like this: