Installation
- Download the latest release of the plugin
- Un-zip
- Double-click on fit-to-parent.sketchplugin
Usage
Quickly fit a layer to its parent* with keyboard shortcuts:
- 👨👦 Fit to parent
ctrl alt cmd p
- ↔️ Fit to parent’s width
ctrl alt cmd w
- ↕️ Fit to parent’s height
ctrl alt cmd h
*A parent can either be a group or an artboard depending on your layer/group structure. This can be super handy.
Know Oddities & Bummers
- Sometimes fitting text boxes to their parent can be screwy
- Aspect-ratio-locked shapes (squares, circles, etc) sometimes behave unpredictably