menu

Sketch

The Sketch community on Spectrum. Sketch is the ultimate tool for designing user interfaces, websites, and icons.

Channels
Team

FitToContent: set the dimensions of elements to their contents’ size

August 3, 2019 at 4:40pm

FitToContent: set the dimensions of elements to their contents’ size

August 3, 2019 at 4:40pm
Hello! I have created a simple plugin called FitToContent that helps in a variety of cases.
FitToContent sets the dimensions of elements to their contents’ size or original size.
Works with: 👉 Artboards 👉 Symbol Instances 👉 Groups 👉 Text Layers
✨ For Text Layers it resizes the text box to the correct height based on the line-height value.
📐 Applied to Symbol Instances it resets them to their original size (the Master Symbol’s size).
📂 For Groups it fixes an issues 🤕 where folders don’t match the size or position of their contents!
Enjoy!

August 3, 2019 at 5:12pm
Wow, this sounds almost too good to be true. Will definately give it a try!
like-fill
1
  • reply
  • like

August 4, 2019 at 11:50am
Wow, this sounds almost too good to be true. Will definately give it a try!
Thanks! I’d love any feedback. I am looking into other “contextual” things that could be potentially added or tweaked.
Edited
  • reply
  • like