Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use % instead of px ? #32

Open
fabiofdsantos opened this issue Apr 22, 2019 · 4 comments
Open

Use % instead of px ? #32

fabiofdsantos opened this issue Apr 22, 2019 · 4 comments

Comments

@fabiofdsantos
Copy link

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

@IsraelZablianov
Copy link
Owner

Can you please explain a bit more?

@fabiofdsantos
Copy link
Author

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)

@IsraelZablianov
Copy link
Owner

I will look into it, thanks

@lucasvienna
Copy link

Any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants