Unnecessary layouts; TLDR; new method "requestLocalLayout"
I've been writing a container that does layout, and I've been using itextensively in my latest project.I noticed that many skins and controls will call requestLayout(), notrealizing that this will mark the current n
enjdk.org/browse/JDK-8089992
>
>
>
> -andy
>
>
>
>
>
> *From: *John Hendrikx
> *Date: *Wednesday, April 16, 2025 at 16:13
> *To: *Nir Lisker , Andy Goryachev
>
> *Cc: *openjfx-dev@openjdk.org
> *Subject: *[External] : Re: Unnecessary layouts; T
Possibly related: https://bugs.openjdk.org/browse/JDK-8089992
-andy
From: John Hendrikx
Date: Wednesday, April 16, 2025 at 16:13
To: Nir Lisker , Andy Goryachev
Cc: openjfx-dev@openjdk.org
Subject: [External] : Re: Unnecessary layouts; TLDR; new method
"requestLocalLayout"
I t
>
> -andy
>
>
>
>
>
>
>
> *From: *openjfx-dev on behalf of
> John Hendrikx
> *Date: *Monday, April 14, 2025 at 08:56
> *To: *openjfx-dev@openjdk.org
> *Subject: *Unnecessary layouts; TLDR; new method "req
Subject: [External] : Re: Unnecessary layouts; TLDR; new method
"requestLocalLayout"
I tested this with several controls that were triggering layouts (like on
cursor movements), and I saw no adverse effects. Basically, any time you
interact with a control and it triggers a full la
t;
>
>
>
>
>
>
> *From: *openjfx-dev on behalf of John
> Hendrikx
> *Date: *Monday, April 14, 2025 at 08:56
> *To: *openjfx-dev@openjdk.org
> *Subject: *Unnecessary layouts; TLDR; new method "requestLocalLayout"
>
> I've been writing a container
stion of naming the method requestLayoutChildren())
-andy
From: openjfx-dev on behalf of John Hendrikx
Date: Monday, April 14, 2025 at 08:56
To: openjfx-dev@openjdk.org
Subject: Unnecessary layouts; TLDR; new method "requestLocalLayout"
I've been writing a container that does l
Yes, this does seem useful.
-- Kevin
On 4/16/2025 1:36 AM, Michael Strauß wrote:
This sounds like a useful addition. Maybe it should be named
requestLayoutChildren() to indicate what will be happening.
This sounds like a useful addition. Maybe it should be named
requestLayoutChildren() to indicate what will be happening.
I've been writing a container that does layout, and I've been using it
extensively in my latest project.
I noticed that many skins and controls will call requestLayout(), not
realizing that this will mark the current node + all parent nodes with
`NEEDS_LAYOUT`. This causes all those containers to
10 matches
Mail list logo