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.
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.
- relates to
-
JDK-8125658 Truncated text in hyperlinks and buttons
-
- Closed
-