Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6146] Android: View: BorderColor property will also cause the backgroundColor to be filled in or a view.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Do
Resolution Date2020-01-09T19:28:13.000+0000
Affected Version/sRelease 1.7.3
Fix Version/sn/a
ComponentsAndroid
LabelsView, backgroundColor, borderColor, tbs-1.9.0
ReporterOpie Cyrus
AssigneeUnknown
Created2011-11-10T15:43:48.000+0000
Updated2020-01-09T19:28:13.000+0000

Description

Setting borderColor will also set backgroundColor. Example source:
var win = Titanium.UI.createWindow({ backgroundColor:'#f0f0f0' });

var parent = Ti.UI.createView({ width:150, height:150, top:0, left:0, borderColor:'red', borderWidth:3 });

var greenView = Ti.UI.createScrollView({ width:100, height:100, top:0, left:0, borderColor:'green', borderWidth:1 });

var child = Ti.UI.createView({ width:10, height:10, top:15, left:15, borderColor:'black', borderWidth:3 });

var button1 = Ti.UI.createButton({ title:'remove from scrollview', top:150, left:0, width:200, height:40 });
var button2 = Ti.UI.createButton({ title:'remove from view', top:200, left:0, width:200, height:40 });

button1.addEventListener('click', function() { greenView.remove(child); });
button2.addEventListener('click', function() { parent.remove(greenView); });
win.add(parent);
parent.add(greenView);
greenView.add(child);
win.add(button1);
win.add(button2);
win.open();

Comments

  1. Bitfabrikken - Dan Wulff Kronholm 2013-03-13

    Can confirm this bug is still existing even in Titanium 3.0.2.
  2. Biju pm 2014-01-24

    The issue cannot reproduce with the release master 3.2.0 Tested with: Titanium Studio, build: 2.1.2.201208301612 Titanium SDK version: 3.2.0 Tested on Device: Samsung galaxy s duos Android version: 4.0.4
  3. Alan Hutton 2020-01-09

    It has been decided that this issue should be closed as “Won’t do.” This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. Updating, or creating code may not reproduce the issue reported, or be a valid test case. If community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.

JSON Source