From 1a563dea242eb969551a38258b0301459656bdd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Emre=20Kabakc=C4=B1?= Date: Tue, 24 Apr 2018 01:41:20 +0300 Subject: [PATCH] Emit dimensions in pixel in resize event It's often useful to have the dimensions of the placeholder in resize event because it allows us to resize the content when the user is resizing an item in real-time. --- src/GridItem.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GridItem.vue b/src/GridItem.vue index fc401c72..5847eda5 100644 --- a/src/GridItem.vue +++ b/src/GridItem.vue @@ -522,7 +522,7 @@ this.lastH = y; if (this.innerW !== pos.w || this.innerH !== pos.h) { - this.$emit("resize", this.i, pos.h, pos.w); + this.$emit("resize", this.i, pos.h, pos.w, newSize.height, newSize.width); } if (event.type === "resizeend" && (this.previousW !== this.innerW || this.previousH !== this.innerH)) { this.$emit("resized", this.i, pos.h, pos.w, newSize.height, newSize.width);