Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8094344

[Tooltip] Tooltip font size changing to match label (and tooltip shrinking)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 9
    • 8u5
    • javafx
    • Windows 8.1

      Use scenebuilder and add a label. Change the font size of the label to something arbitrary (e.g. 48). Drag a tooltip and drop it onto the label. Set the tooltip text but leave the tooltip font on the default settings (System - 12px).

      Run the app. The tooltip font size will now be the same as the label font size.

      Note, if you change the tooltip font size to anything other than the default (i.e. 12), then the tooltip font size will be correct. If you change the tooltip font size to 12 (the default value), the tooltip will be displayed in the label font size.

      I also noticed another problem when testing this. If you change the tooltip font size (to anything other than the default 12), then every time you mouse over the label, the tooltip font size shrinks and the tooltip gets smaller. That seems like it's another issue.

      Note, my tooltip is set as an internationalized string... just in case it doesn't reproduce as a standard string.

            jgiles Jonathan Giles
            drivljfx Driv3l (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: