nikitasnv / vue-resizable

VueResizable component
https://nikitasnv.github.io/vue-resizable/
MIT License
224 stars 46 forks source link

Messed up width on resize #10

Closed kas84 closed 4 years ago

kas84 commented 4 years ago

Hi, I'm having trouble getting the initial with right when I start dragging:

Here's a demo with the latest version of the library:

https://codesandbox.io/s/vue-template-forked-88o3g?file=/src/App.vue

When you try to drag the div from the right, the width received by the resize:start handler is the full width of the parent, instead of its own width.

kas84 commented 4 years ago

Okay, sorry for the buzz!

I read the component and you need to specify width prop for that.