Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5173] Android: window proxy is not set correctly on light weight window

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-09-02T14:14:34.000+0000
Affected Version/sRelease 1.7.2
Fix Version/sSprint 2011-35, Release 1.8.0
ComponentsAndroid
Labelsexception, orientation
ReporterOpie Cyrus
AssigneeNatalie Huynh
Created2011-08-30T10:07:45.000+0000
Updated2011-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();

Comments

  1. Natalie Huynh 2011-09-12

    Tested with 1.8.0.v20110909152148 on Hero 2.1 Nexus One 2.2.2 LG Slate 3.1 iOS Simulator 4.1

JSON Source