RFR: 8307117: TextArea: wrapText property ignored when changing font
Ambarish Rapte
arapte at openjdk.org
Wed Feb 7 10:25:57 UTC 2024
On Mon, 21 Aug 2023 21:44:12 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
> Requesting content layout when font changes.
>
> This change makes the visual impact of [JDK-8314683](https://bugs.openjdk.org/browse/JDK-8314683) more visible, so perhaps both bugs should be fixed at the same time.
With this change observed a behavior that: When changing font size from smaller size to larger size, text is first layouted vertically and then layouted horizontally.
Sharing screen capture:
https://github.com/openjdk/jfx/assets/11330676/5cd3a70a-7aac-4339-9947-5f3817802377
I tried adding few more calls to the listener as below, but it did not change the behavior:
registerChangeListener(control.fontProperty(), e -> {
invalidateMetrics();
updateFontMetrics();
control.requestLayout();
contentView.requestLayout();
});
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1217#issuecomment-1931729793
More information about the openjfx-dev
mailing list