Resize Sketch artboards to fit content, with padding around all sides.
Select one or more artboards and press ctrl + shift + z.
This command is also accessible in the Plugins menu:
Plugins โ Trim & Pad Artboard
To adjust the padding value, edit the padding
value on the first line of the shared.js
file.
- When resizing an artboard to fit content, only visible layers are considered, but the relative positioning of hidden layers with respect to visible layers is preserved.
- Select multiple artboards to resize many at once.
- Select a layer to resize the parent artboard. Also works for multiple parent artboards when selecting multiple layers across artboards.
Version 1.0
Forked from Resize Artboard
- Forked, adjusted, cleaned up, published.