[TIMOB-1528] Android: Only one object appears when multiple views should be drawn.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:56:25.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | Android |
Labels | android, defect, regression |
Reporter | Thomas Huelbert |
Assignee | Don Thorp |
Created | 2011-04-15T02:55:14.000+0000 |
Updated | 2011-04-17T01:56:25.000+0000 |
Description
found against 1.4.1 f88b9e
1.use the script below and run the content
results: only one object shows, there should be 4 (one on each side) as on iPhone.
var win = Titanium.UI.currentWindow;
var view = Titanium.UI.createView({
borderRadius:10, backgroundColor:'red', width:50, height:50, top:5
});
var view1 = Titanium.UI.createView({
borderRadius:10, backgroundColor:'red', width:50, height:50,
bottom:5 });
var view2 = Titanium.UI.createView({
borderRadius:10, backgroundColor:'red', width:50, height:50,
right:5 });
var view3 = Titanium.UI.createView({
borderRadius:10, backgroundColor:'red', width:50, height:50, left:5
}); win.add(view,view1,view2,view3);
http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.Window.add-method.html"> Documentation for
add
is clearly in the "singular", so probably that should be updated too.after internal conversation (Nolan), the decision is to leave this as is, undocumented on iOS, and keep existing android behavior.