Skip to content

Label height is ignored if the font size is larger #3533

@rjwills28

Description

@rjwills28

This is a repeat of issue #3344, which was initially fixed in #3354, however this fix has knock on consequences for labels in the Byte Monitor widget reported in #3518.

The fix for the label height was to set:

jfx_node.setMinSize(Control.USE_PREF_SIZE, Control.USE_PREF_SIZE);
jfx_node.setMaxSize(Control.USE_PREF_SIZE, Control.USE_PREF_SIZE);

But setting the min size like this caused the labels in the Byte Monitor widget to not show. Removing the setMinSize() fixed the Byte Monitor issue but undid the fix for the label height.

I believe setting both min and max to the same thing tells JavaFX to 'really' set this size. My guess is that removing the one let it treat the preferred size as optional again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions