draggable-vue-directive icon indicating copy to clipboard operation
draggable-vue-directive copied to clipboard

Use % instead of px ?

Open fabiofdsantos opened this issue 6 years ago • 4 comments

Any plan to make the directive work with % instead of px?

fabiofdsantos avatar Apr 22 '19 13:04 fabiofdsantos

Can you please explain a bit more?

IsraelZablianov avatar Apr 24 '19 19:04 IsraelZablianov

If we need to retrieve the position of the draggable item considering the draggable-container, will be easier to use % than px.

E.g. You can save the left and top % based on the draggable-container, then use the % to define the draggable item position programmatically.

Just to illustrate: https://codepen.io/osublake/pen/azMONr (not mine)

fabiofdsantos avatar Apr 24 '19 20:04 fabiofdsantos

I will look into it, thanks

IsraelZablianov avatar Apr 29 '19 11:04 IsraelZablianov

Any updates on this?

lucasvienna avatar Oct 29 '19 12:10 lucasvienna