RFR: 8340344: The first item in TreeView is not aligned in the beginning [v5]
Andy Goryachev
angorya at openjdk.org
Wed May 14 15:16:59 UTC 2025
On Wed, 14 May 2025 14:43:05 GMT, Ziad El Midaoui <zelmidaoui at 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
More information about the openjfx-dev
mailing list