Problem description
When using a custom barImage, the navigation bar contents of the new window do not animate in.
Steps to reproduce
Create a NavGroup with two windows and set the 'barImage' for at least the first displayed window.
Result: when opening Window 2, the top title bar is not actually animating in. Instead it just appears with no animation.
var win1 = Titanium.UI.createWindow({
backgroundColor: '#fff',
barImage: 'images/navbar.png', // set a barImage image here for Window 1
title: 'Window 1'
});
var win2 = Titanium.UI.createWindow({
backgroundColor: '#fff',
barImage: 'images/navbar.png', // set a barImage image here for Window 2
title: 'Window 2'
});
var nav = Titanium.UI.iPhone.createNavigationGroup({
window: win1
});
var button = Titanium.UI.createButton({
title: 'Open Window 2',
top: 40
});
win1.add(button);
button.addEventListener('click', function(event) {
nav.open(win2);
});
var win = Titanium.UI.createWindow();
win.add(nav);
win.open();
Videos showing the two different behaviors:
Without barImage:
http://cl.ly/2e002Y2C040M
Using barImage:
http://cl.ly/012p2x320R1K
Issue 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
This was fixed for 3.1.3, I can no longer reproduce it with 3.1.3.GA. Bug should be marked as fixed.
Fixed along with changes to TIMOB-16121
As UI.iPhone.NavigationGroup has been removed in favor of UI.iOS.NavigationWindow, the test case has been changed to:
Verified fixed using: Titanium SDK 4.0.0.v20150317234215 Studio 3.4.2.201502181619 CLI 3.4.2 Xcode 6.2 Node 0.12 Animations display correctly.