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

Does interact element size/pos support percentage unit instead of px? #1063

Open
ioiofadhil opened this issue Mar 24, 2025 · 0 comments
Open

Comments

@ioiofadhil
Copy link

I'm trying to make dynamic elements that could be draggable/resizeable freely by users. In pixels, it works perfectly. But I want the elements to be fit size to any devices, responsively. Which, pixels, is not the best answer for this...

My idea is to convert the pixels into percentages to its parent. But I'm wondering, is there any way to directly use percentage calculation in "move()" or any other listeners?

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

1 participant