[AC-1237] iOS: Window title not visible when closing and opening a window using animations
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2014-12-31T00:08:42.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | TCSupportTriage |
Reporter | Jick Steen |
Assignee | Mauro Parra-Miranda |
Created | 2014-09-05T15:47:08.000+0000 |
Updated | 2016-03-08T07:37:37.000+0000 |
Description
Link to Q&A: [http://developer.appcelerator.com/question/177376/ios-window-title-not-visible-when-closing-and-opening-a-window-using-animations#comment-217935]
Closing a window and opening another window both using animations results in a not displayed window title. Disabling the animation in openWindow() will make the title appear again. It seems to be a regression as it works in 3.2.3 GA but is broken since 3.3.0
I spent a long time in trying to make a small example which should make it possible to reproduce:
var rootWindow = Ti.UI.iOS.createNavigationWindow();
rootWindow.window = Ti.UI.createWindow();
rootWindow.open();
rootWindow.openWindow($.index, {animated : false});
setTimeout(function () {
rootWindow.closeWindow($.index, {animated : true});
var win2 = Ti.UI.createWindow({
backgroundColor: "#e7e7e7"
});
rootWindow.openWindow(win2, {animated : true});
win2.title = 'My Title 2';
}, 5000);
<Alloy>
<Window id="index" title="My Title">
<View backgroundColor="red">
</View>
</Window>
</Alloy>
When executing the example you will notice the title is not visible. Setting rootWindow.openWindow(win2, {animated : true});
to rootWindow.openWindow(win2, {animated : false});
will make the title appear. Also not closing the $.index
window makes the title appear again. Opening the new window in the close
event of the previous window does not fix it.
Hello, We have tested this issue. But we didn't reproduce this issue as a bug, window title is visible when closing and opening a window using animations.
Testing Environment:
Titanium SDK: 3.3.0.GA Titanium CLI: 3.3.0, iOS:7.1, OS X Version: 10.9.4, Appcelerator Studio: 3.3.0Steps to Test:
1. Create a classic project. 2. Paste this code in app.js file. 4. Run this code with the testing environment.Test Code.
Thanks.