Skip to content

Commit

Permalink
fix: #1262 allow setting width and height using stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
msand committed Mar 5, 2020
1 parent bef5a9c commit c5374b2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/elements/Svg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ export default class Svg extends Shape<
static displayName = 'Svg';

static defaultProps = {
width: '100%',
height: '100%',
preserveAspectRatio: 'xMidYMid meet',
};

Expand Down Expand Up @@ -120,8 +118,8 @@ export default class Svg extends Shape<
};
const {
color,
width,
height,
width = '100%',
height = '100%',
focusable,

// Inherited G properties
Expand Down

0 comments on commit c5374b2

Please sign in to comment.