node-projects / dock-spawn-ts

A TypeScript HTML Docking Framework (fork of dock-spawn)
MIT License
127 stars 29 forks source link

Setting the active panel does not work #67

Closed akapfham closed 2 years ago

akapfham commented 2 years ago

Setting the active panel via this.dockManager.activePanel = newActivePanel does not work. The GUI does not reflect the changes. In the IDE demo lets say you want to set the "Outline" tab as the active tab and not "Solution Explorer" but you want the order of the tabs exactly as they are, how can this be achived? Setting this.dockManager.activePanel does not work. active-tab-gui

jogibear9988 commented 2 years ago

I do it in my app like this:

   propertyGridNode.parent.container.setActiveChild(propertyGridNode.container);

the activePanel at the moment is only set from inside of dockspawn. writing it does not have any effects.

akapfham commented 2 years ago

Thank you! This works perfectly.