dynamic-reposition
dynamic-reposition copied to clipboard
Resizing for margins
By setting properties for both top and bottom or/and left and right the object will be stretched out to keep the right distance to the background.
This does not seem to be the case when I tested with Sketch 3.3.2.
Layer (rectangle) was named t:10:r:10:b:10:l:10 Was grouped and over top of another larger rectangle (named "background"). Running the plugin resulted in a top and left margin of 10px but did not stretch the smaller rectangle out to ensure bottom or right margins.
ie: It's repositioning according to two values, rather than repositioning + resizing according to four values.
same issue. would be great to get this working