Skip to content

Commit 54d9fad

Browse files
committed
update new version
update new version
1 parent 185a5f1 commit 54d9fad

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "particles-bg-vue",
3-
"version": "1.3.2",
3+
"version": "1.3.5",
44
"description": "Vue.js component for particles backgrounds",
5-
"author": "creotip@gmail.com",
5+
"author": "lindelof@protonmail.com",
66
"license": "MIT",
77
"bugs": {
88
"url": "https://github.com/lindelof/particles-bg-vue/issues"

src/particles-bg/particles/CanvasComp.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export default {
2727
methods: {
2828
initCanvas: function() {
2929
const canvas = this.$refs.canvasRef;
30-
const width = window.innerWidth;
31-
const height = window.innerHeight;
30+
const width = canvas.clientWidth;
31+
const height = canvas.clientHeight;
3232
canvas.width = width;
3333
canvas.height = height;
3434
@@ -41,8 +41,8 @@ export default {
4141
},
4242
resize: function() {
4343
const canvas = this.$refs.canvasRef;
44-
const width = window.innerWidth;
45-
const height = window.innerHeight;
44+
const width = canvas.clientWidth;
45+
const height = canvas.clientHeight;
4646
canvas.width = width;
4747
canvas.height = height;
4848
this.$emit("canvasResize", { width, height });

0 commit comments

Comments
 (0)