Skip to content

Commit

Permalink
fix border style without borderRadius
Browse files Browse the repository at this point in the history
call drawRoundedBackgroundWithBorders if borderStyle set
  • Loading branch information
skv-headless committed Apr 3, 2016
1 parent 5387e09 commit 06ca452
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Examples/UIExplorer/ViewExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ var ViewBorderStyleExample = React.createClass({
<View>
<View style={{
borderWidth: 1,
borderRadius: 5,
borderStyle: this.state.showBorder ? 'dashed' : null,
padding: 5
}}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private static enum BorderStyle {

@Override
public void draw(Canvas canvas) {
if ((!CSSConstants.isUndefined(mBorderRadius) && mBorderRadius > 0) || mBorderCornerRadii != null) {
if ((!CSSConstants.isUndefined(mBorderRadius) && mBorderRadius > 0) || mBorderCornerRadii != null || mBorderStyle != null) {
drawRoundedBackgroundWithBorders(canvas);
} else {
drawRectangularBackgroundWithBorders(canvas);
Expand Down

0 comments on commit 06ca452

Please sign in to comment.