[TIMOB-12776] Modal Window opening bug, while using modal transition style
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-03-22T09:29:37.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.2 |
Components | iOS |
Labels | ios, iphone |
Reporter | Ashish Nigam |
Assignee | jithinpv |
Created | 2013-02-18T10:51:33.000+0000 |
Updated | 2017-03-21T21:57:28.000+0000 |
Description
Description: If i close the modal window,using close button then it is working fine. But if i close it using curl effect then close event does not fire and window can not be opened second time, as it is not closed.
code to reproduce.
var win1 = Ti.UI.createWindow({
backgroundColor : "white",
});
var w = Ti.UI.createWindow({
backgroundColor : 'purple'
});
var b = Ti.UI.createButton({
title : 'Close',
width : 100,
height : 30
});
b.addEventListener('click', function() {
w.close();
});
w.add(b);
w.addEventListener("close", function() {
alert("hello");
});
var b1 = Ti.UI.createButton({
title : 'Open',
width : 100,
height : 30
});
b1.addEventListener('click', function() {
w.open({
modal : true,
modalTransitionStyle : Titanium.UI.iPhone.MODAL_TRANSITION_STYLE_PARTIAL_CURL,
modalStyle : Titanium.UI.iPhone.MODAL_PRESENTATION_FULLSCREEN,
navBarHidden : true
});
});
win1.add(b1);
win1.open();
Issue does not reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) iOS iPhone Simulator: iOS SDK version: 6.0 jithinpv
Issue does not reproduces Tested with iOS SDK: 5.1 iOS iPhone Simulator: 5.1 Mac OS X Version 10.7.5 Titanium SDK version 3.1.1.v20130606121419 Titanium Studio, build: 3.0.1.201212181159
Closing ticket as the issue cannot be reproduced and due to the above comments.