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

Button title text change leads to "..."

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: 7u6
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
      None
    • Environment:

      Mac OS Mountain Lion

      Description

      Our application is internationalized so at the user's discretion the language may change from English to Danish. This means that title texts on buttons will be updated. If the button text is updated from, say, "Guide" to "Vejledning" (Danish term), obviously the length of the title label of the button will change. I would expect that the Button class and the default skin would be able to handle this change correctly, but what I am seeing is a change from "Guide" to "Vejledni..." (notice the ellipsis).

      At first I thought that perhaps the default skin forgets to request layout, but that is actually not the case - the button *does* become wider, only it does not become wide enough. I suspect there is some kind of JavaFX miscalculation of how much space "Vejledning" takes up on a button.

      I am using a font family of "Open Sans Regular",15pt, and I am on a Mac.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jgiles Jonathan Giles
              Reporter:
              risaksen Randahl Isaksen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved:
                Imported: