RFR: 8341286: TreeView: visual artifacts when setting new root with null value [v3]

Andy Goryachev angorya at openjdk.org
Tue Jul 29 15:55:03 UTC 2025


On Tue, 29 Jul 2025 15:51:50 GMT, Ziad El Midaoui <zelmidaoui at openjdk.org> wrote:

>> The issue is that when we use null value for root item in a TreeView and then expand the root or change it dynamically there are phantom disclosure nodes that appear incorrectly. 
>> The issue was caused by this line `if (getSkinnable().isEmpty()) return;` in `TreeCellSkin#updateDisclosureNode()` as it prevents the method from running unless the cell's value is not empty and it caused the creation of disclosure nodes visually without any logic behind.
>
> Ziad El Midaoui has updated the pull request incrementally with one additional commit since the last revision:
> 
>   minor change

Marked as reviewed by angorya (Reviewer).

-------------

PR Review: https://git.openjdk.org/jfx/pull/1838#pullrequestreview-3068180462


More information about the openjfx-dev mailing list