Problem Description
Open NavWindow with FLIP_FROM_LEFT produces a little jump.
Steps to reproduce
1. Create a new mobile project
2. Add this to app.js
var firstWindow = Ti.UI.createWindow({
backgroundColor : "white",
title:'First Window'
});
var firstWindow = Ti.UI.iOS.createNavigationWindow({
backgroundColor: 'blue',
window : firstWindow
});
var openLabel = Ti.UI.createLabel({
text : 'Open window'
});
openLabel.addEventListener('click', function() {
navWindow.open({
transition : Ti.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT
});
});
firstWindow.add(openLabel);
var secondWindow = Ti.UI.createWindow({
backgroundColor: 'white',
title : 'Second Window',
});
var closeButton = Ti.UI.createButton({
title : 'Close'
});
closeButton.addEventListener('click', function(e) {
navWindow.close({
transition : Ti.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT
});
});
secondWindow.setLeftNavButton(closeButton);
var navWindow = Ti.UI.iOS.createNavigationWindow({
backgroundColor: 'red',
window : secondWindow
});
firstWindow.open();
3. Run it in a device.
Actual Results
The Navigationbar and title jumps when opened Second window.
No comments