kirillmurashov/vue-drag-resize

Y axis shifts when resizing horizontally.

pnt-oshima opened this issue · 3 comments

Hello!

I'm not sure if my code is bad or if this is a bug, so could you please help me?

I'm trying to create a bar that can only be dragged and resized horizontally. I want to limit the left/right range, so I have set parentLimitation to true.
The dragging is fine, but when I resize it, the height changes and the Y axis moves and jumps out from the parent element.

Attached is a URL where I can reproduce the problem.

Codesandbox

i miss it

@pnt-oshima were you able to resolve the issue? facing the same issue..

I found the fix to this. At least in my case it was resolved by setting the parent element position to be relative.