Skip to content

Commit e66d921

Browse files
authored
fix auto values for width and height
fix The default values for width and height are auto strings
1 parent 6e6e18e commit e66d921

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/vue-drag-resize.js

Lines changed: 2 additions & 2 deletions
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)