Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10785] iOS: Inconsistent transition behavior using Titanium.UI.Window.open settings

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-21T21:06:07.000+0000
Affected Version/sRelease 2.1.2
Fix Version/sn/a
ComponentsiOS
Labelscore
ReporterBenjamin Hatfield
AssigneeEric Merriman
Created2012-09-05T15:16:34.000+0000
Updated2017-06-21T21:06:07.000+0000

Description

Steps to Reproduce: 1. Adjust open window parameters 2. Run the code. 3. Click the 'Open' button to see the transition (or not). Expected Results: If animated=true, you should see the transition effect. Also, if fullscreen=true, shouldn't that override the dimension settings? Actual Results: Varies depending on the settings. See table. || || modal==true || fullscreen==true || modal==false or undefined && \\ fullscreen==false or undefined || | animated is undefined | default transition or modalTransitionStyle | no effect unless transition is set | no effect unless transition is set | | animated==true | default or modalTransitionStyle | no transition | no transition | | animated==false | no transition | no effect unless transition is set | no effect unless transition is set | | animated==true && dimensions are defined | N/A | uses dimensions | uses dimensions | | animated==false && dimensions are defined | N/A | Uses transition setting. If not set, uses the dimensions | Uses transition setting. If not set, uses the dimensions. | dimensions = top, bottom, left, and/or right
var win1 = Ti.UI.createWindow({
    width: '100%',
    height: '100%',
    backgroundColor: 'white'
});
var btn1 = Ti.UI.createButton({
    top: 0,
    left: 0,
    width: 100,
    height: 50,
    title: 'open'
});
btn1.addEventListener('click', openWindow);
win1.add(btn1);
win1.open();
 
function openWindow() {
    var win2 = Ti.UI.createWindow({
        backgroundColor: 'red',
 		orientation: Ti.UI.LANDSCAPE_LEFT,
    });
 
	var btn2 = Ti.UI.createButton({
	    top: 0,
	    left: 0,
	    width: 100,
	    height: 50,
	    title: 'close'
	});

	btn2.addEventListener('click', function(e){
		win2.close();
	});
	win2.add(btn2);

    win2.duration = 500;
    win2.open({
    	/* Switch parameters on/off */
    	//navBarHidden: true,
    	animated: true,
    	//modal: true,
    	fullscreen: true,
    	transition: Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_RIGHT,
 		//modalTransitionStyle: Titanium.UI.iPhone.MODAL_TRANSITION_STYLE_CROSS_DISSOLVE,  
 		//top:25,
 		//left:25,
 		//right:25,
 		//bottom:25,
    });
}

Comments

  1. Lee Morris 2017-06-21

    Closing ticket due to the time passed and lack of progress for a number of years. Any problems, please file a new ticket.

JSON Source