DWilliames / paddy-sketch-plugin

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

Detatching Symbols Using Paddy Results in Fixed Width Element Conversion & Shifting #118

Open chsWeb opened 6 years ago

chsWeb commented 6 years ago

Bug report

Sketch 48.2, Paddy 1

Expected behavior:

When detatching a symbol that uses Paddy, the elements in the resulting layers should remain set to their original Auto or Fixed width and the elements should not shift. This seems to only happen when multiple symbols are detached that are also inside of a Paddy-spaced Group, such as Group [8h top]. When expanding the symbols in the "Group [8h top]" folder, they are shifting and expanding. detatchSymbolBug.sketch.zip

Actual behavior:

When detatching a symbol, some layers are being converted from Auto width to a Fixed width and the fixed width element is expanding it's width randomly, shifting the layers.

Steps to reproduce:

  1. Insert a symbol that uses paddy
  2. Duplicate the symbol and group the two symbols
  3. Name the resulting group "Group [8h top]
  4. Detatch one or both both symbols in the group
  5. Things convert to fixed width and elements shift (see demo file attached)

Notes & Examples:

I've attacked a file that demonstrates the bug. What is very strange is that if I add a text layer to the file, the bug is prevented - as can be seen in the bottom artboard.

chsWeb commented 6 years ago

This is becoming a problem when syncing via InVision, because InVision first detaches the symbols, then syncs. But, in normal non-InVision work, it is also a problem when detaching the symbol.