Skip to content

Commit 41a37c9

Browse files
authored
Merge pull request jbaysolutions#1 from rakam-io/resize-event-dimensions
Emit dimensions in pixel in resize event
2 parents 33c5205 + 1a563de commit 41a37c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GridItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@
522522
this.lastH = y;
523523
524524
if (this.innerW !== pos.w || this.innerH !== pos.h) {
525-
this.$emit("resize", this.i, pos.h, pos.w);
525+
this.$emit("resize", this.i, pos.h, pos.w, newSize.height, newSize.width);
526526
}
527527
if (event.type === "resizeend" && (this.previousW !== this.innerW || this.previousH !== this.innerH)) {
528528
this.$emit("resized", this.i, pos.h, pos.w, newSize.height, newSize.width);

0 commit comments

Comments
 (0)