Skip to content

Commit 1a563de

Browse files
authored
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.
1 parent 33c5205 commit 1a563de

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)