Description
When an alert dialog is shown before the window is opened, the child views of the window are displayed on top of the alert.
Code to reproduce
var self = Ti.UI.createWindow();
var mainArea = Ti.UI.createView({
backgroundColor : 'red',
height : Ti.UI.SIZE,
width : Ti.UI.SIZE
});
var message = Ti.UI.createLabel({
font : {
fontSize : '14dp'
},
height : Ti.UI.SIZE,
color : '#4b4b4b',
width : Ti.UI.SIZE,
text : 'Test text here to test things out because we need to test'
});
mainArea.add(message);
self.add(mainArea);
var alertDialog = Ti.UI.createAlertDialog({
title : 'Error',
message : "Testing alert",
buttonNames : ['OK']
});
alertDialog.show();
self.open();
Please also see attached screenshot.
PR: https://github.com/appcelerator/titanium_mobile/pull/4369
Tested and Verified fix with: OSX: 10.8.5 Xcode:5.0 Appcelerator Studio: 3.2.0.201311120707 SDK: 3.2.0.v20131111174605 acs:1.0.7 alloy:1.3.0 npm:1.3.2 titanium:3.2.0 titanium-code-processo:1.0.3 Device: iOS7(v7.0.3)-iPodTouch1