Skip to content

Commit 946fe79

Browse files
Merge pull request #118 from hinet/patch-2
fix auto values for width and height
2 parents 28be2a0 + e66d921 commit 946fe79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/vue-drag-resize.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,8 @@ export default {
689689

690690
sizeStyle(){
691691
return {
692-
width: this.width + 'px',
693-
height: this.height + 'px'
692+
width: this.w == 'auto' ? 'auto' : this.width + 'px',
693+
height: this.h == 'auto' ? 'auto' : this.height + 'px'
694694
};
695695
},
696696

0 commit comments

Comments
 (0)