Does anyone else have problems with the Mobile Template sample at the following URL?
http://developers.arcgis.com/en/javascript/samples/mobile_template/index.html
I noticed back in 3.3 that if you click About, rotate the screen, go back to the map and rotate the screen a couple of times, the map will resize itself into nothing.
I brought this up with ESRI Support, even filed a bug about it and was told it was "a priority item to solved right away". Here we are at 3.6 and it doesn't appear to me that anything has changed. Is it just my iPad and half a dozen Android sample devices doing this?
Thanks,
Doug
This was brought up a couple months ago. But when creating the map, set autoResize to false. Then only call map.resize() when inside the map view.map = new esri.Map("mapPane", {
autoResize : false,
.....
dojo.connect(map, "onLoad", function () {
dojo.connect(window, 'onresize', function() { // prevent map from resizing in non map view. This would error otherwise
if (currentView == "mapView")
{
map.resize();
map.reposition();
}
});
});