To reproduce
fromgit/titanium_mobile_tests_internal/FeatureTest/Map/module_map
run 5275 test
1. click any annotation, get an alert and rotate the device
Actual result
Alert dialog is cut off
app.js
var MapModule = require('ti.map');
var win = Ti.UI.createWindow({
backgroundColor : 'white'
});
var latitude = 37.390749;
var longitude = -122.08165;
var annotations = [];
for (var i = 0; i < 20; i++) {
var annotation = MapModule.createAnnotation({
latitude : latitude + (0.02 * i),
longitude : longitude - (0.02 * i),
title : "Annotation Test",
pincolor : MapModule.ANNOTATION_RED,
animate : true
});
annotations.push(annotation);
};
var map = MapModule.createView({
mapType : MapModule.NORMAL_TYPE,
region : {
latitude : latitude,
longitude : longitude,
latitudeDelta : 0.5,
longitudeDelta : 0.5
},
animate : false,
regionFit : true,
annotations : annotations
});
map.addEventListener('click', function(e) {
alert(e);
});
win.add(map);
win.open();
1. Install
Workaround for now: use a proper iPhone splash screen to prevent the distortion. The rotation is an Apple bug. Moving this to 3.4.1.
Note: [~vduggal] to point to related Apple bug.
[~vduggal] had indicated that using a proper iPhone 5 launch screen should address the distortion. If you need more information on the exact steps of the workaround, we can provide that on Monday.
There are two problems in this bug. One the alert dialog is rotating when it should not. Second is the distortion on rotation. We have fixed this issue as part of TIMOB-17648. Please retest.
Fixed by changes for TIMOB-17648
Hello, We have tested this with Mac osx 10.9.4 Maverics Appcelerator Studio, build: 3.4.0.201409112242 Titanium SDK, build: 3.4.0.v20140912145715 alloy 1.5.0-rc titanium 3.4.0-rc2 Xcode6beta7 Device: iPod iOS8 Simulator: iPhone5s Version 8.0 (550), Simulator rotation was applied. Works as expected, the alert dialog remains in portrait mode.