Project: titanium
Issue TIMOB-17719: iOS8: Alert dialog does not consider window orientation modes when keyboard is displayed
h3. Issue When the alert dialog is called with an input text style and a orientation mode restricted to Portrait and the device is rotated to landscape the alertDialog keeps rotating but only if the keyboard is being displayed, if the keyboard is hiding the alert will not rotate. h3. Step to reproduce 1. Run the test code 2. Tap on the "Welcome to Titanium" for the alert to be displayed 3. Try to rotate the device. 4. Go back to portrait and tap on the input text box. 5. Try to rotate the device h5. Expected Results The alert will not rotate and remain in portrait mode. h5. Actual results When the keyboard is hidden the alert will not rotate, once the keyboard is displayed the alert will begin to rotate h3. Test Code {code} var win = Ti.UI.createWindow({	orientationModes: [Ti.UI.PORTRAIT],	backgroundColor:'#ffffff' });	var label = Ti.UI.createLabel({	color:'#000000',	text:String.format(L('welcome'),'Titanium'),	height:'auto',	width:'auto'	});	label.addEventListener('click', function(e) {	var alertDialog = Ti.UI.createAlertDialog({ title: "Alert Dialog", message: "akjskajksa skajskajksjas akjskajskjaks aksjakjsa aksjakjsa aksjakjsa aksjakjsa aksjakjsa aksjakjsa aksjakjsa", style: Ti.UI.iPhone.AlertDialogStyle.PLAIN_TEXT_INPUT }); alertDialog.show();	}); win.add(label); win.open(); {code}
Story points: 3