We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c890401 commit cd5a78aCopy full SHA for cd5a78a
1 file changed
packages/builder-web-core/widgets-native/html-svg/index.ts
@@ -200,6 +200,17 @@ export class SvgElement extends StylableJsxWidget {
200
};
201
}
202
203
+ // @override
204
+ get finalStyle() {
205
+ return {
206
+ ...super.finalStyle,
207
+ // TODO: this is a hot fix of svg & path's constraint handling
208
+ // width & height for the svg must be preserved. (it wont' follow the constraints anyway.)
209
+ width: css.length(this.width),
210
+ height: css.length(this.height),
211
+ };
212
+ }
213
+
214
jsxConfig(): StylableJSXElementConfig | UnstylableJSXElementConfig {
215
return <StylableJSXElementConfig>{
216
type: "tag-and-attr",
0 commit comments