Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
allow 0 to be set for radius & elevation
Browse files Browse the repository at this point in the history
  • Loading branch information
bradmartin authored Feb 8, 2017
1 parent 473c529 commit 2183657
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cardview.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ export class CardView extends ContentView {
}
this._android.setId(this._androidViewId);

if (this._radius)
if (this._radius || this._radius === 0)
this.radius = this._radius;

if (this._elevation)
if (this._elevation || this._elevation === 0)
this.elevation = this._elevation;
}
}
Expand Down Expand Up @@ -70,4 +70,4 @@ export class CardViewStyler implements style.Styler {
}
}

CardViewStyler.registerHandlers();
CardViewStyler.registerHandlers();

0 comments on commit 2183657

Please sign in to comment.