Skip to content

Fix swing panel tab switching#56

Merged
stephenkirk-toast merged 1 commit intomainfrom
Fix-swing-panel-tab-switching
Apr 8, 2026
Merged

Fix swing panel tab switching#56
stephenkirk-toast merged 1 commit intomainfrom
Fix-swing-panel-tab-switching

Conversation

@stephenkirk-toast
Copy link
Copy Markdown
Collaborator

Upgrade from compose 1.6.11, to 1.8.0 looks to have unearthed a bug with the SwingPanel not recomposing on tab switch.

Added key(tab.tabID around the active tab's content in tabHolderUI.
When the active tab changes, Compose sees a different key, destroys the old composable tree, and creates a new one.
This forces SwingPanel's factory to re-run with the correct tab's scroll pane.

…n SwingPanel no recomposing on tab switch.

 Added key(tab.tabID) around the active tab's content in tabHolderUI. When the active tab changes, Compose sees a different key, destroys the old composable tree, and creates a new one. This forces SwingPanel's factory to re-run with
 the correct tab's scroll pane.
@stephenkirk-toast stephenkirk-toast marked this pull request as ready for review April 8, 2026 10:02
@stephenkirk-toast stephenkirk-toast merged commit 0c985fb into main Apr 8, 2026
3 of 5 checks passed
@stephenkirk-toast stephenkirk-toast deleted the Fix-swing-panel-tab-switching branch April 8, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant