DWilliames / paddy-sketch-plugin

Automated padding, spacing and alignment for your Sketch layers
MIT License
2.17k stars 61 forks source link

Issue with ignoring padding for specific edges #1

Closed ivancucer closed 6 years ago

ivancucer commented 6 years ago

Hey @DWilliames 👋

Thank you very much for this really handy plugin ❤️ But I noticed an issue with ignoring padding for specific edges 🐞 Please take a look at this screencast: https://monosnap.com/file/yxe5a1aA2zkYMHFykytMJr0m7gzLdh 🔍 Source file: https://monosnap.com/file/2DEcKoYR2aChmra8C2xsHshV7BBQOf 💎

macOS 10.12.6 (16G1212) Sketch 48.2 (47327) Paddy 1.0

Thanks in advance!

Best! Ivan

DWilliames commented 6 years ago

Thanks for the detailed bug report @ivancucer! 👍 I'll look into this as soon as I can. :)

DWilliames commented 6 years ago

So, I've figured out how to make sure that the padding does ignore the edges for the symbol instance.

However, because you've got an AutoLayout 'Stack Group'; it's not aware that it is a stack group. So it looks like this — it thinks it will be shorter, because it doesn't realise that they'll be 'stacked'. image

How important is it for you that will take into account Stack Groups? :P I think I can figure out how to do it; it will just be a bit fiddly.

DWilliames commented 6 years ago

I managed to figure out how to make it account for Stack Groups. I'll close this issue for now. I just pushed an update with the fix — please check it works. If it doesn't, then re-open this issue 👍