Skip to content

Commit 0783f5d

Browse files
authored
Preserve aspect ratio (#541)
1 parent f5742d3 commit 0783f5d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/GridItem.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,11 @@
790790
// console.log("### MIN " + JSON.stringify(minimum));
791791
792792
const opts = {
793-
preserveAspectRatio: true,
793+
modifiers: [
794+
interact.modifiers.aspectRatio({
795+
ratio: 'preserve'
796+
}),
797+
],
794798
// allowFrom: "." + this.resizableHandleClass.trim().replace(" ", "."),
795799
edges: {
796800
left: false,

0 commit comments

Comments
 (0)