RFR: 8340344: The first item in TreeView is not aligned in the beginning [v5]
Ziad El Midaoui
zelmidaoui at openjdk.org
Thu May 15 11:52:56 UTC 2025
On Thu, 15 May 2025 07:07:07 GMT, Ambarish Rapte <arapte at openjdk.org> wrote:
> Would it be possible to avoid re-layout of the cells that are after the Cell with a disclosureNode ?
This is actually what is happening, when we scroll down and find a TreeCell that has a disclosure node this is when the condition `disclosureWidth > defaultDisclosureWidth` is true and we do a re-layout of the visible previous cells before the disclosure node and the new value is saved in the `maxDisclosureWidthMap` so the cells that are layouted after the disclosure node when scrolling are using the new value of `defaultDisclosureWidth`.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1715#discussion_r2090990731
More information about the openjfx-dev
mailing list