On Thu, 20 Nov 2025 16:40:39 GMT, Jurgen <[email protected]> wrote:

>> Requesting `VFlow` re-layout when signaled by a `Node` embedded in 
>> `TextCell`.
>> 
>> 
>> ### NOTES
>> 
>> - this PR depends on https://github.com/openjdk/jfx/pull/1974
>> - the fix can be verified visually using the latest Monkey Tester
>> 
>> <img width="1232" height="741" alt="Screenshot 2025-11-17 at 13 43 12" 
>> src="https://github.com/user-attachments/assets/58b2ef77-094c-45bd-8a04-3caaa4672df1";
>>  />
>
> modules/jfx.incubator.richtext/src/main/java/com/sun/jfx/incubator/scene/control/richtext/TextCell.java
>  line 474:
> 
>> 472:             if (vf != null) {
>> 473:                 vf.requestLayout();
>> 474:             }
> 
> Would `setNeedsLayout(true);` maybe work here instead ?

no, we need to signal this to VFlow who does the layout.

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1975#discussion_r2546811730

Reply via email to