sketch-hq / SketchAPI

The JavaScript plugin library embedded in Sketch
https://developer.sketch.com/reference/api
MIT License
842 stars 126 forks source link

Layers don't scale when first created. #838

Closed siliconivan closed 3 years ago

siliconivan commented 3 years ago

Not sure where the right place to post this is, but I was playing with the resizing feature in Sketch. When the layer is first created, it doesn't resize based on the preview from the resizing panel. It matches what would happen if you set fixed size on both width & height even though it's not described. As a user, I can fix this by selecting & deselecting a property in the resizing panel. I will check the JSON file generated from Sketch to see if the resize values are incorrect as well.

https://user-images.githubusercontent.com/13757212/120027761-02ade700-bfb1-11eb-910b-6fa783902ecd.mov

Sketch Version: 72.3

siliconivan commented 3 years ago

Just saw that it's because of the Adjust Content on resize property on the parent group.

Sorry about that, took me a while to find that. :)