problem
If the *borderWidth* property of a Titanium view is specified density independently (dp), it does not show up on Android. If you remove the *dp* suffix on the *borderWidth* property, everything works as expected. This problem also occurs on Mobileweb (). This problem does not occur on iOS.
expected behavior
The border should appear as expected whether or not density independent (dp) dimensions are specified for the *borderWidth* property.
test case
var win = Ti.UI.createWindow({
backgroundColor: '#fff'
});
var view = Ti.UI.createView({
height: '100dp',
width: '100dp',
backgroundColor: '#888',
borderColor: '#000',
borderWidth: '3dp' // error, no border appears
//borderWidth: 3 // this works as expected
});
win.add(view);
win.open();
This also seems to be an issue for borderRadius.
PR https://github.com/appcelerator/titanium_mobile/pull/3903
Tested with: SDK: 3.1.0.v20130312015656 Studio: 3.1.0.201303091040 Device: Android emulator OS: OSX 10.7.5 works as expected