RFR: 8375444: MenuButton - textTruncated Property is always false
Andy Goryachev
angorya at openjdk.org
Thu Jan 15 15:26:45 UTC 2026
On Thu, 15 Jan 2026 15:04:13 GMT, Florian Kirmaier <fkirmaier at openjdk.org> wrote:
> For MenuButton and SplitMenuButton the textTruncated Property is always false - but the text is correctly rendered truncated if it is to long.
>
> This PR fixes it, by extending the logic in LabeledImpl - to always forward this property.
> I've also extended the existing tests for the truncated property.
>
> It would be great, to get some feedback on how i fixes the bug.
modules/javafx.controls/src/main/java/com/sun/javafx/scene/control/LabeledImpl.java line 61:
> 59:
> 60: labeledImpl.textTruncatedProperty().subscribe(v -> {
> 61: LabeledHelper.setTextTruncated(labeled, v);
should the property be bound instead?
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/2040#discussion_r2694826329
More information about the openjfx-dev
mailing list