Popup Panel Widget

875
1
05-18-2018 09:06 AM
MarkCooper5
Occasional Contributor II

Hi

I love this widget but have a question.

I am using the Tabbed theme and when no other side panel widgets are open, if you identify an object, it will open the panel and display the result. However, if one of the other widgets are highlighted, when you identify, it stays on the existing widget and you have to manually click on the popup widget. Is there a way to give the popup widget focus in this situation?

Thanks

Tags (1)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Mark,

   Here is the change for that to work. In the widget.js add lines 8 thru 16 to the displayPopupContent:

      displayPopupContent: function (feature) {
        if (feature) {
          if(this.inPanel){
            if(this.appConfig.theme.name === 'JewelryBoxTheme'){
              PanelManager.getInstance().maximizePanel(this.inPanel);
            }else if(this.appConfig.theme.name === 'TabTheme') {
              var sbc = WidgetManager.getInstance().getWidgetsByName("SidebarController")[0];
              var configs = sbc.getAllConfigs();
              var tIndex;
              array.some(configs, function(g, index) {
                if(g.name === 'PopupPanel'){
                  tIndex = index;
                  return true;
                }
              })
              sbc.selectTab(tIndex);
              sbc._resizeToMax();
            }else{
...
0 Kudos