[TIMOB-12028] Mobileweb: View borderWidth with 'dp' dimensions does not show on Mobileweb
GitHub Issue | n/a |
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-06-26T22:10:18.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | parity |
Reporter | Tony Lukasavage |
Assignee | Unknown |
Created | 2012-12-11T21:12:38.000+0000 |
Updated | 2018-04-04T23:20:21.000+0000 |
Description
problem
If the *borderWidth* property of a Titanium view is specified density independently (dp), it does not show up on Mobileweb. If you remove the *dp* suffix on the *borderWidth* property, everything works as expected. This problem also occurs on Android (TIMOB-12027). 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();
[code}
Comments
JSON Source
Resolving as "Won't Fix" as MobileWeb has been deprecated.
Closing as will not fix.