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 ccccb50 commit 64b7794Copy full SHA for 64b7794
src/components/Field.vue
@@ -155,10 +155,12 @@
155
return d;
156
},
157
updateCanvasWidth() {
158
- this.canvasWidth = this.$refs.canvas.clientWidth;
+ // Firefox does not support clientWidth for SVG, so fall back to the parent element
159
+ this.canvasWidth = this.$refs.canvas.clientWidth || this.$refs.canvas.parentNode.clientWidth;
160
161
updateCanvasHeight() {
- this.canvasHeight = this.$refs.canvas.clientHeight;
162
163
+ this.canvasHeight = this.$refs.canvas.clientHeight || this.$refs.canvas.parentNode.clientHeight;
164
165
textTransform(p) {
166
if (this.rotateField) {
0 commit comments