[TIMOB-8956] Android: When a view backgroundColor is set to transparent, setting the border width and color fills in the whole view with the border color.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-07-12T22:00:28.000+0000 |
Affected Version/s | Release 2.0.1 |
Fix Version/s | Release 2.1.0 |
Components | Android |
Labels | api, module_view, qe-testadded, support |
Reporter | Betty Tran |
Assignee | Ping Wang |
Created | 2012-05-02T16:11:45.000+0000 |
Updated | 2012-08-13T08:07:03.000+0000 |
Description
Problem
The issue occurs when a view is created with a transparent background color, a border width and a border color. Instead of the background being transparent and the border being the specified color and width, the whole view is filled in with the border color.Test case
var btnView = Ti.UI.createView({
left: 10,
height: 300,
width: 300,
top: 10,
backgroundColor: 'transparent',
borderWidth: 2,
borderColor: 'red'
});
var win = Ti.UI.createWindow({
backgroundColor: 'blue'
});
win.add(btnView);
win.open();
Test case:
For functional test, click the buttons to change the properties of the view and observe the change of the view.
PR https://github.com/appcelerator/titanium_mobile/pull/2244
Fixed by PR https://github.com/appcelerator/titanium_mobile/pull/2244
Verified fixed with SDK 2.1.0.v20120618102300
Reopening issue. Bug still occurs on: Titanium Studio, build: 2.1.1.201207061909 Titanium SDK: 2.2.0.v20120705160241 Devices: Nexus S (4.0.4), Galaxy Nexus (4.0.4), Motorola Xoom (4.0.3)
Can not reproduce with either the 2.1.X or master branches. Tested on Android Sim (2.2), Galaxy Nexus(4.0.2) and Motorola Xoom (4.0.3) with both V8 and Rhino
Verified fix with: Titanium Studio, build: 2.1.1.201207271312 Titanium SDK: 2.1.1.v20120727140110 HTC EVO 4.0.3