mauricius / vue-draggable-resizable

Vue3 Component for draggable and resizable elements.
https://mauricius.github.io/vue-draggable-resizable/
MIT License
3.34k stars 560 forks source link

reset Height to initial value when user clicks certain button #230

Open leevanhe opened 4 years ago

leevanhe commented 4 years ago

Is there any solution to the next problem:

users resizes div but after a certain flow that div needs to go back to it's initial height.

TitanFighter commented 4 years ago

Save initial height then on click apply saved value.

leevanhe commented 4 years ago

but when i give a fixed height style property i can not resize the div anymore

leevanhe commented 4 years ago

so this is the flow: users resizes div modal opens but users cancels flow div needs to go to initial value (but needs to keep the possibilty to resize)

TitanFighter commented 4 years ago

Show your code via codesandbox or something similar, then I can fix your issue.