Hello,
i have a problem with minimizePanel. WAB 1.1
If i run PanelManager.getInstance().minimizePanel(this.id + '_panel'); nothing will happen. Code PanelManager.getInstance().closePanel(this.id + '_panel'); is Ok (Panel closes).
Thank you for your ideas
Ondra
Ondra,
Some themes do not have a minimized state for their panels. What theme are you working with?
TabTheme
Ondra,
So are you trying to minimize the sidebar controller or some on screen widget?
sceen widget
Ondra,
There is no Minimize state for a onScreen widget in the tab theme. You will notice that there is only a close button on the widgets UI when using the tab theme or when you are using the theme on a mobile device the will be a maximize button that calls this code:
_onMaxBtnClicked: function(evt) { evt.stopPropagation(); var posInfo = this._getPositionInfo(); if (posInfo.isRunInMobile) { if (this.windowState === 'maximized') { this.panelManager.normalizePanel(this); } else { this.panelManager.maximizePanel(this); } this._setMobilePosition(); } },
I use desktop ... some idea how add minimize fuction to TabTheme?
Ondra,
Nope.