[TIMOB-5173] Android: window proxy is not set correctly on light weight window
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-09-02T14:14:34.000+0000 |
Affected Version/s | Release 1.7.2 |
Fix Version/s | Sprint 2011-35, Release 1.8.0 |
Components | Android |
Labels | exception, orientation |
Reporter | Opie Cyrus |
Assignee | Natalie Huynh |
Created | 2011-08-30T10:07:45.000+0000 |
Updated | 2011-09-12T13:52:33.000+0000 |
Description
Exception is throw when trying to get window proxy for light weight window. Attached source should trigger the exception when the open event fires and the orientation is set.
var win = Ti.UI.createWindow({backgroundColor:'blue'});
var label = Ti.UI.createLabel({text:"this is some text"});
win.add(label);
win.addEventListener('open', function() {
Ti.API.info(">>>>>>>>>>>>>>>>>>>>>>>>>>> window opened");
Ti.UI.orientation = Ti.UI.PORTRAIT;
});
win.open();
Tested with 1.8.0.v20110909152148 on Hero 2.1 Nexus One 2.2.2 LG Slate 3.1 iOS Simulator 4.1