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.
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). ThiscallOnDock
in the listener is not doneinDynamicComponentMode
, meaning any workspace buttons added in the componentsonDock
function would not be marked for removal upon anonUndock
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 dockedinDynamicComponentMode
as expected.