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

Button title text change leads to "..."

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • 8
    • 7u6
    • javafx
    • None
    • Mac OS Mountain Lion

      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.

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

              Created:
              Updated:
              Resolved:
              Imported: