[TIMOB-15917] Android: Window: New window does not open in button click
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-12-08T17:42:42.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | 2013 Sprint 25, 2013 Sprint 25 API, Release 3.2.0, Release 3.3.0 |
Components | Android |
Labels | qe-3.2.0, qe-testadded, regression |
Reporter | Paras Mishra |
Assignee | Ping Wang |
Created | 2013-12-07T04:50:57.000+0000 |
Updated | 2014-01-22T10:56:19.000+0000 |
Description
Android: Window: New window does not open in button click
It works fine on SDK: 3.1.3.GA
Steps to reproduce:
1. Run the below app.
var _window = Titanium.UI.createWindow({
backgroundColor:'#fff'
});
var button = Ti.UI.createButton({
title : 'Press me'
});
button.addEventListener('click', function() {
var win = Ti.UI.createWindow({
backgroundColor : 'white',
borderColor : 'black',
borderWidth : 1,
width : '100%',
height : '100%',
navBarHidden : true
});
win.open();
});
_window.add(button);
_window.open();
2. Click press me
Expected:
A new window should open
Actual:
A black screen appears
I could reproduce the issue using the latest 3.2.0.v20131206182444 SDK. It might be related to heavyweight windows. Using the property '
PR: https://github.com/appcelerator/titanium_mobile/pull/5093 3_2_X PR: https://github.com/appcelerator/titanium_mobile/pull/5094
Verified with Environment: Appcelerator Studio: 3.2.0.201312081316 SDK:3.2.0.v20131208204843 alloy: 1.3.0-beta acs: 1.0.10 npm: 1.3.2 titanium: 3.2.0-beta titanium-code-processor: 1.1.0-beta Xcode: 5.0.2 Devices: Google Nexus7(v4.2.1) and iPhone5 Version:7.0.4 New window is now open successfully on the button click. Hence closing the issue.