fix: #1262 allow setting width and height using stylesheet

This commit is contained in:
Mikael Sand
2020-03-05 12:23:05 +02:00
parent bef5a9c408
commit c5374b297e
+2 -4
View File
@@ -53,8 +53,6 @@ export default class Svg extends Shape<
static displayName = 'Svg';
static defaultProps = {
width: '100%',
height: '100%',
preserveAspectRatio: 'xMidYMid meet',
};
@@ -120,8 +118,8 @@ export default class Svg extends Shape<
};
const {
color,
width,
height,
width = '100%',
height = '100%',
focusable,
// Inherited G properties