yuany 3 лет назад
Родитель
Сommit
9e977e5686
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/components/Post.vue

+ 2 - 0
src/components/Post.vue

@@ -208,6 +208,8 @@ export default {
                 useCORS: true,
                 allowTaint: true,
                 backgroundColor: null,
+                width: this.$refs.post.offsetWidth - 1,
+                height: this.$refs.post.offsetHeight - 1,
                 scale: 3
             }).then(canvas => {
                 this.$toast.clear();