On Wed, 12 Nov 2025 14:21:22 GMT, Ziad El Midaoui <[email protected]> 
wrote:

> When a subtree is moved in a `TreeTableView` , the visuals don’t update until 
> a resize or expand/collapse. The `TreeTableViewSkin` only rebuilds cells when 
> the expanded row count changes.
> This PR makes the skin to detect structural changes on 
> `childrenModificationEvent` using new variable `treeStructureDirty`, and in 
> `updateItemCount()` call `requestRebuildCells()` to refresh the visuals.

modules/javafx.controls/src/main/java/javafx/scene/control/skin/TreeTableViewSkin.java
 line 151:

> 149:                     }
> 150:                     else if 
> (eventType.equals(TreeItem.<T>childrenModificationEvent())) {
> 151:                         markItemCountDirty();

Question: Couldn't you just call `requestRebuildCells` directly here?

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1971#discussion_r2518861737

Reply via email to