DWilliames / paddy-sketch-plugin

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

"Fixed" width option for things like dividers. #117

Open marbuser opened 6 years ago

marbuser commented 6 years ago

I'm unsure whether this is already added and I'm just unaware of how it works, so I'm unsure of whether to mark this as bug or suggestion.

What I'm trying to achieve; Top = Default Symbol Bottom = Symbol with override image

However, it seems that when using a Paddy inside of a symbol, it causes the actual symbol to shrink/grow in width, so you are left with the result below. image

I've tried playing around with the 'Resizing' modifiers inside the symbol since I suspected that might fix it if the line itself had a fixed width, but no. It still resizes.

If this is already in paddy, some clarification would be great. Otherwise consider this a feature request. :)

chsWeb commented 6 years ago

I think you can achieve your result buy layering layers.

layer 2 = Group/Folder ↳ Changed Text layer ↳ white rectangle [20 0] layer 1 = "-border" vertically centered line/border in artboard

Paddy will expand the text rectangle over the line, creating the effect. Pin your line/border layer to the left and right.

marbuser commented 6 years ago

Doesn't appear to be working from testing that just then. Pretty sure I didn't do anything wrong but feel free to let me know if I did.

Divider Symbol: image

(Note: border layer is pinned left and right.) image

Text overriding results in this; image