Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix workspace docking bug #14

Merged
merged 1 commit into from
Nov 20, 2020
Merged

fix workspace docking bug #14

merged 1 commit into from
Nov 20, 2020

Conversation

SKeeneCode
Copy link
Collaborator

@SKeeneCode SKeeneCode commented Nov 10, 2020

fixes #13

When a workspace switches from Stack Mode to Tab Mode, it will rely on the components rootParentChangeListener to undock and redock the dockedComponent in its new location (TabPane in this case). This callOnDock in the listener is not done inDynamicComponentMode, meaning any workspace buttons added in the components onDock function would not be marked for removal upon an onUndock call.

This fix briefly removes the listener of the component for its workspace dock call in this single instance. Line 296 ensures the component will be docked inDynamicComponentMode as expected.

Signed-off-by: SKeeneCode <[email protected]>
@edvin edvin merged commit 1526e19 into edvin:master Nov 20, 2020
@SKeeneCode SKeeneCode deleted the workspace-bugfix branch November 25, 2020 14:12
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.

Workspace dynamic components not properly removing under certain condition.
2 participants