JDK-8285700 : [TreeTableView] graphic property of TreeItem is still visible after collapsing tree
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: jfx11,jfx18
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2022-04-27
  • Updated: 2023-07-25
  • Resolved: 2023-07-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
jfx22 b01Fixed
Related Reports
Relates :  
Relates :  
Description
In JDK-8157398 an regression caused by the fix for JDK-8143266 - when the regression was fixed in OpenJFX-8 it was decided that no fix was needed for OpenJFX-9 because with the attached snippet the problem could not be reproduce.

Unfortunately the snippet simply was to minimal adding more nesting levels reveals that the problem still exists from OpenJFX-9 onwards to OpenJFX-18.
Comments
Changeset: 600cee70 Author: Karthik P K <kpk@openjdk.org> Date: 2023-07-20 15:47:19 +0000 URL: https://git.openjdk.org/jfx/commit/600cee70a2f6f907a53f7183315e6d7f79b291d6
20-07-2023

Sure. Thanks for confirming.
12-07-2023

exactly - just wanted to make sure you are aware of both .. and can write unit tests against each to verify the fix :)
12-07-2023

[~fastegal], I believe you are seeing this behavior without the fix provided. I could reproduce these 2 issues before the fix and the changes made fixes both the issues mentioned above.
12-07-2023

actually, I see (sometime around fx19+) two variations of misbehavior - expand the second last node - expected and actual: graphic of last treeItem is moved to the new position below the initial - expected: graphic of first sub-child treeItem is visible, actual: not visible - collapse second last node - expected: graphic of last treeItem is moved back to its initial position, actual: remains at expanded location (as shown in the screenshot)
11-07-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jfx/pull/1172 Date: 2023-07-07 05:25:34 +0000
07-07-2023

Steps to reproduce: - Run attached sample - Expand "Child Node 4" - Collapse "Child Node 4" You should now see the same effect as in the attached screenshot
27-04-2022