Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12776] Modal Window opening bug, while using modal transition style

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-03-22T09:29:37.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.2
ComponentsiOS
Labelsios, iphone
ReporterAshish Nigam
Assigneejithinpv
Created2013-02-18T10:51:33.000+0000
Updated2017-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();

Comments

  1. jithinpv 2013-03-22

    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
  2. jithinpv 2013-06-20

    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
  3. Lee Morris 2017-03-21

    Closing ticket as the issue cannot be reproduced and due to the above comments.

JSON Source