-
-
Notifications
You must be signed in to change notification settings - Fork 659
Padding gets larger #951
Copy link
Copy link
Closed
Labels
Milestone
Description
Environments
- Framework name: VanillaJS
- Framework version: -
- Moveable Component version: 0.48.0
- Testable Address(optional): https://codepen.io/nathnolt/pen/RwqWVvq
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.
Reactions are currently unavailable