Select to view content in your preferred language

EditWidget.mxml AttributeInspector Bug?

615
0
09-14-2011 03:30 PM
JoseSousa
Esri Contributor
Hi,

I have noticed in the ArcGIS Viewer 2.4 (and previous releases) that the EditWidget.mxml is not fully closing the AttributeInspector inside the InfoWindow appropriately.

For instance, when I click on a DropDownList (or Calendar Item) and it pops up, I have noticed that If I close the InfoWindow (not the Widget) the DropDownList (or Calendar) still continues on top of the map even though the InfoWindow (with the AttributeInspector inside it) has been closed.

My workaround for now is to set the map.infoWindow.content to null on the infoWindowCloseHandler. Not sure if this creates additional problems as for now seems to work fine.

Can you please validate this and provide feedback?

Regards,
José

Workaround (EditWidget.mxml):

private function infoWindowCloseHandler(event:Event):void
{
          // Previous line
          // map.infoWindow.content = editor.attributeInspector;

          // New line
          map.infoWindow.content = null;
          if(attachmentInspector)
          {
                  attachmentInspector.clear();
          }
}
Tags (2)
0 Kudos
0 Replies