Found that the minimum height of the header in the TitledPane is fixed to 22px. In my opinion it would be a better approach to make the height of the header dependent on the used font size and the given css padding (except there is a good reason to fix it to 22px).
This is what it looks like in the TitledPaneSkin source:
public class TitledPaneSkin extends LabeledSkinBase<TitledPane, TitledPaneBehavior> {
public static final int MIN_HEADER_HEIGHT = 22;
...
For a customer project we need to be able to have a smaller header height e.g. 15px because we use a smaller font there.
This is what it looks like in the TitledPaneSkin source:
public class TitledPaneSkin extends LabeledSkinBase<TitledPane, TitledPaneBehavior> {
public static final int MIN_HEADER_HEIGHT = 22;
...
For a customer project we need to be able to have a smaller header height e.g. 15px because we use a smaller font there.