Skip to content

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

Open
@ioiofadhil

Description

@ioiofadhil

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions