On Wed, 14 May 2025 14:43:05 GMT, Ziad El Midaoui <zelmida...@openjdk.org> wrote:
>> Also noticed a scenario: When a TreeCell with disclosureNode is currently >> not shown on screen but becomes visible on scrolling. In that case the >> TreeCells are layout while the scroll is in progress. I see only one way to >> avoid this that maxDisclosureWidthMap should reflect the correct value >> before starting the layout. > > Yes true, > the default value of the `defaultDisclosureWidth` when there is no > disclosureNode is 18 and when we come across a TreeCell that has a disclosure > node the `defaultDisclosureWidth` changes to 20 that is what causes the > TreeCells to move visually. > My first thought was to change the default value as that would avoid doing > the re-layout and would reflect the the correct value before starting the > layout also visually we won't see that change in the TreeCells position. > In that case the TreeCells are layout while the scroll is in progress. does this create any visual artifacts? ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/1715#discussion_r2089188397