RFR: 8307117: TextArea: wrapText property ignored when changing font
Karthik P K
kpk at openjdk.org
Wed Feb 7 12:18:02 UTC 2024
On Wed, 7 Feb 2024 10:23:20 GMT, Ambarish Rapte <arapte 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();
> });
I can also see the same behaviour which @arapte mentioned above.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1217#issuecomment-1931924252
More information about the openjfx-dev
mailing list