Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17661] iOS8: Alert dialog distortion on rotation

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-09-15T16:29:02.000+0000
Affected Version/sRelease 3.4.0
Fix Version/sRelease 3.4.0, Release 3.5.0
ComponentsiOS
Labelsios8, qe-3.4.0
ReporterOlga Romero
AssigneeVishal Duggal
Created2014-09-09T18:59:50.000+0000
Updated2014-11-21T20:28:04.000+0000

Description

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

Attachments

FileDateSize
Screen Shot 2014-09-09 at 10.46.59 AM.png2014-09-09T18:59:50.000+0000464537
Screen Shot 2014-09-09 at 10.47.05 AM.png2014-09-09T18:59:50.000+0000330912

Comments

  1. Ingo Muschenetz 2014-09-12

    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.
  2. Ingo Muschenetz 2014-09-12

    Note: [~vduggal] to point to related Apple bug.
  3. Ingo Muschenetz 2014-09-13

    [~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.
  4. Vishal Duggal 2014-09-13

    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.
  5. Vishal Duggal 2014-09-13

    Fixed by changes for TIMOB-17648
  6. Amimul Hossain 2014-09-16

    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.

JSON Source