Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6378] Ti API: Default background color for views is inconsistent

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionDuplicate
Resolution Date2012-07-12T11:59:38.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTiAPI
Labelsparity
ReporterArthur Evans
AssigneeJosh Roesslein
Created2011-11-30T10:42:19.000+0000
Updated2017-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

Comments

  1. Josh Roesslein 2012-07-12

    Duplicates TIMOB-6139.
  2. Lee Morris 2017-03-10

    Closing ticket as duplicate.

JSON Source