Skip to content

Commit

Permalink
* [android] Fix bug of border width due to viewport. Refer sospartan/…
Browse files Browse the repository at this point in the history
  • Loading branch information
YorkShen committed Dec 28, 2016
1 parent 7852392 commit 9cd6800
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1055,6 +1055,7 @@ public void setBorderWidth(String key, float borderWidth) {
if (borderWidth >= 0) {
switch (key) {
case Constants.Name.BORDER_WIDTH:
getOrCreateBorder().setBorderWidth(Spacing.ALL, WXViewUtils.getRealSubPxByWidth(borderWidth,getInstance().getViewPortWidth()));
break;
case Constants.Name.BORDER_TOP_WIDTH:
getOrCreateBorder().setBorderWidth(Spacing.TOP, WXViewUtils.getRealSubPxByWidth(borderWidth,getInstance().getViewPortWidth()));
Expand Down

0 comments on commit 9cd6800

Please # to comment.