[TIMOB-15371] Android: Unable to overlay multiple lightweight windows
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-10-01T19:53:35.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | n/a |
Components | Android |
Labels | triage |
Reporter | Dawson Toth |
Assignee | Ping Wang |
Created | 2013-09-30T01:19:18.000+0000 |
Updated | 2017-03-17T17:56:56.000+0000 |
Description
Problem
On 3.1.3.GA, I can stack windows on Android, just how I can on iOS. But on master, the last window opened ignores all positioning, and is surrounded by a black background. It works on iOS. Attached are screenshots.Reproduction
var win = Ti.UI.createWindow({
backgroundColor: '#fff'
});
win.addEventListener('click', function(evt) {
alert('1');
});
win.open();
var win2 = Ti.UI.createWindow({
backgroundColor: '#0f0',
top: 20, left: 20,
width: 100, height: 100
});
win2.addEventListener('click', function(evt) {
alert('2');
});
win2.open();
Attachments
File | Date | Size |
---|---|---|
android.3.1.3.GA.png | 2013-09-30T01:19:18.000+0000 | 20479 |
android.master.png | 2013-09-30T01:19:18.000+0000 | 21144 |
ios.3.1.3.GA.png | 2013-09-30T01:19:18.000+0000 | 11186 |
ios.master.png | 2013-09-30T01:19:18.000+0000 | 11186 |
Latest from 3_1_x works too, by the way. It just appears to be in master that I'm seeing this.
In the master branch (3.2.0), we deprecate the lightweight windows. If the developers want to use lightweight windows in 3.2.0, they have to enable the property "ti.android.useLegacyWindow" in the tiapp.xml:
Please refer to TIMOB-13796 for details. In the above test case, the two windows are LW windows so "ti.android.useLegacyWindow" need to be enabled when testing for 3.2.0. Resolve the ticket as Invalid.
Closing ticket as invalid.