SantoP

Resize in a different mobile view

Discussion created by SantoP on Apr 16, 2014
Latest reply on Apr 16, 2014 by SantoP
Hi,

I have the following situation:
A mobile view contains an esri javascript map.
Another mobile view contains a search input field.

When I change to the search input field and the soft keyboard shows up, the map gets a resize event, making it zoom to a huge scale, essentially breaking the map display. When I switch back to the map, it shows nothing.

You can even reproduce this without a tablet:
1. Fire up: http://developers.arcgis.com/javascript/samples/mobile_template/index.html
2. Go to the about tab.
3. Resize the view (bigger or smaller doesn't matter)
(If you want you can even change back to the original size before going back)
4. Go back to the map.
5. The map is gone, replaced with a gray background.

Any idea how to fix this ?

Thanks.

Outcomes