RFR: 8340344: The first item in TreeView is not aligned in the beginning [v5]
Ambarish Rapte
arapte at openjdk.org
Thu May 15 07:09:58 UTC 2025
On Wed, 14 May 2025 18:26:23 GMT, Ziad El Midaoui <zelmidaoui at openjdk.org> wrote:
>> this is the expected behavior though, right?
>>
>> what we **don't** want is the flicker - when the re-layout is needed but happens in another pulse. When e.g. scrollbars need to appear/disappear it may even lead to flicker that does not end.
>
> Yes normally it is expected to see this behavior since we do a re-layout so the TreeCells are updated with a new `defaultDisclosureWidth` value, I tested it and I do not see a flicker on my system.
> This would perform a layout of all cells, re-layout of previous cells and layout of next cells. but, layout of next cells is performed again as continuation layout of TreeView. A solution would be to break the loop when `cell` is current cell being layouted, so that at least the layout of next cells is not performed twice.
Would it be possible to avoid re-layout of the cells that are after the Cell with a disclosureNode ?
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1715#discussion_r2090441312
More information about the openjfx-dev
mailing list