[TIMOB-6378] Ti API: Default background color for views is inconsistent
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-07-12T11:59:38.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | TiAPI |
Labels | parity |
Reporter | Arthur Evans |
Assignee | Josh Roesslein |
Created | 2011-11-30T10:42:19.000+0000 |
Updated | 2017-03-10T19:19:52.000+0000 |
Description
The following code produces different effects on Android and iOS:
var view = Ti.UI.createView({
width: 200,
height: 200,
borderColor: '#c00',
borderWidth: 1
});
win.add(view);
On iOS, this produces a transparent box with a red border. On Android, it produces a solid red box.
The workaround is simple enough--specify a background color. But the result is puzzling to customers, who
are more likely to expect the iOS behavior. Reported in Stack Overflow:
http://stackoverflow.com/questions/8222159/titanium-android-bordercolor-behaving-like-backgroundcolor
Duplicates TIMOB-6139.
Closing ticket as duplicate.