Skip to content

Padding gets larger #951

@nathnolt

Description

@nathnolt

Environments

Description

When you set padding in a config, something like
padding: {left: 5, top: 5, right: 5, bottom: 5}
And you have scalable set to true, the padding scales and thus becomes larger.
Right now there is no way to add a bit of padding which does not become larger.
In most cases this is not a problem, but if you have a tiny shape, the padding becomes huge, as you can see in the testable address.

See, I'm using moveable in a drawing application, and so the user can freedraw, creating SVG shapes, so they can make tiny shapes. In these cases, it can become a problem.

I'm not sure if this should be considered a bug, as this could be something people are relying upon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcomplete

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions