Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2137] iOS: Opening a modal window over another modal causes issues

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2017-06-07T23:48:24.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelscore
ReporterStephen Tramer
AssigneeIngo Muschenetz
Created2011-04-15T03:11:36.000+0000
Updated2017-06-07T23:48:24.000+0000

Description

Demonstrated in the following code:

var win = Ti.UI.createWindow({backgroundColor:'white'});
var modal1 = Ti.UI.createWindow({backgroundColor:'blue', modal:true});
var modal2 = Ti.UI.createWindow({backgroundColor:'red', modal:true});

var open1 = Ti.UI.createButton({
    title:'Open modal1',
    width:200,
    height:40
});
open1.addEventListener('click', function() {
    modal1.open();
});
win.add(open1);

var open2 = Ti.UI.createButton({
    title:'Open modal2',
    width:200,
    height:40
});
open2.addEventListener('click', function() {
    modal2.open();
});
modal1.add(open2);

var close1 = Ti.UI.createButton({
    title:'Close modal1',
    top:40,
    width:200,
    height:40
});
close1.addEventListener('click', function() {
    modal1.close();
});
modal2.add(close1);

var close2 = Ti.UI.createButton({
    title:'Close modal2',
    top:100,
    width:200,
    height:40
});
close2.addEventListener('click', function() {
    modal2.close();
});
modal2.add(close2);

win.open();

Comments

  1. Blain Hamon 2011-04-15

    Watch https://github.com/appcelerator/titanium_mobile/tree/ios_window_refactor"> https://github.com/appcelerator/titanium_mobile/tree/ios_window_ref... for codefixes on this.

  2. chris 2011-04-15

    Hi, I just wanted to see if I'm understanding the milestone changes/settings right. Am I correct to assume that the official release of 1.6 will contain the fix for this? This is something we need, so I'm trying to assess if I should expect a fix for 1.6, or if a fix is not definite for 1.6 (and I should take a different approach until a fix is available). Thanks.

  3. Stephen Tramer 2011-04-15

    This will not be fixed for 1.6.

  4. Stephen Tramer 2012-07-26

    Confirmed valid SDK 2.2.0.014b86f
  5. Junaid Younus 2012-08-22

    Tested on the iOS simulator using TiSDK 2.2.0v20120821095711, issue still valid.
  6. Lee Morris 2017-06-07

    Closing ticket due to time passed and lack of progress or input.

JSON Source