vue-draggable-resizable
vue-draggable-resizable copied to clipboard
Feature request: left/right/top/bottom margin
I would like to be able to specify marginLeft, marginRight, marginTop and marginBottom (all default to 0), to limit drag/resize actions. If parent = true, these restrictions are relative to the parent window, otherwise these are minimum values for left/rght/top/bottom.
Use case: I want to use vdr to drag/resize cells in a custom CSS grid, with an own "snapping" algorithm (this works fine now), but I have problems with the padding I'm using in the custom grid (CSS grid gaps I can deal with in my "snapping" algorithm).
This is quite easy to implement in vdr, AFAICS in the code, and it solves a pretty difficult problem if you need it.