Select to view content in your preferred language

Force eMapSwitcher to draw on top of other widgets

1088
4
Jump to solution
08-02-2013 09:42 AM
BrianOevermann
Frequent Contributor
There seems to have been a behavior change after the 3.0 viewer release.  In 3.0 and previous viewer versions the eMapSwitcher would draw over the top of any open widgets.  In 3.1, 3.3, and 3.4, eMapSwitcher opens underneath any open widgets (see the attached image).

Is there an "index" setting I am missing that will force the eMapSwitcher to open above other widgets?  I am using the source code if that allows for a fix.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Brian,

   It is very simple one line workaround.

In the src/com/esri/viewer/managers/WidgetManager.mxml find the startLoadControls function and add the red line below:

            private function startLoadControls():void             {                 controlContainer = new Group();                 controlContainer.percentHeight = 100;                 controlContainer.percentWidth = 100;                  //My Add                 controlContainer.depth = 1000; //End My Add

View solution in original post

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Brian,

  There was a change in the viewer with the introduction of widget panels that changed everything. If you are using the source code then I can tell you how to fix it.
0 Kudos
BrianOevermann
Frequent Contributor
Robert,

I had a feeling that things changed "under the hood".  I am using the source code, so I would be grateful for a solution.  And I am sure others will as well.

Thanks in advance!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Brian,

   It is very simple one line workaround.

In the src/com/esri/viewer/managers/WidgetManager.mxml find the startLoadControls function and add the red line below:

            private function startLoadControls():void             {                 controlContainer = new Group();                 controlContainer.percentHeight = 100;                 controlContainer.percentWidth = 100;                  //My Add                 controlContainer.depth = 1000; //End My Add
0 Kudos
BrianOevermann
Frequent Contributor
Robert,

Love one line code mods!  Worked perfectly.  Thanks, as always.
0 Kudos