DWilliames / paddy-sketch-plugin

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

Bug Report - Padding and horizontal spacing not preserved when nested within a symbol #94

Open gforce31 opened 6 years ago

gforce31 commented 6 years ago

Bug report

Expected behavior:

I am constructing a radio button group consisting of 2 options. Within each option I have a label and a background which has padding applied and a minimum width of 80px [10 16; width >= 80].

The options are grouped and the folder has a vertical space of -1 is applied [-1h] in order to remove the double border.

When I increase the length of the labels I expect the width of the button to increase to maintain the set padding. This would also push the adjacent button in order to preserve the desired layout.

Actual behavior:

This works as expected when you have a single instance but does not work when converted to a symbol.

The text expands outside of the set background and the adjacent button doesn't move as expected.

giphy

This was created in Sketch 49 and using Paddy v1.0.7

DWilliames commented 6 years ago

Thanks @gforce31 – I would consider this 'Nested symbol support'. Something I'm looking into — see #3

Thanks for your patience.