Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14025] Mobile Web: Child window views appear on top of alert dialogs if dialog is shown before window open

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-04-17T22:10:45.000+0000
Affected Version/sRelease 2.1.4, Release 3.0.2, Release 3.1.0
Fix Version/s2013 Sprint 12 JS, 2013 Sprint 12, Release 3.2.0
ComponentsMobileWeb, Windows Hybrid
Labelsn/a
ReporterBetty Tran
AssigneeBryan Hughes
Created2013-05-30T15:51:38.000+0000
Updated2014-04-17T22:10:45.000+0000

Description

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.

Attachments

FileDateSize
Screen Shot 2013-05-30 at 4.46.29 PM.png2013-05-30T15:51:38.000+000026753

Comments

  1. Bryan Hughes 2013-06-10

    PR: https://github.com/appcelerator/titanium_mobile/pull/4369
  2. Pragya Rastogi 2013-11-12

    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

JSON Source