Symbol override in stacked layout resets to original size and style

In the mac app, when I’m trying to make for example a badge with a leading icon, the symbol override in the instance gets it’s original dimensions when I try to change the icon instance. Let me elaborate:

  • I have a ‘badge’ symbol with stack layout (horizontal) for the content, a placeholder icon (nested symbol) and a label.
  • The original size of the icon symbol (all my icon symbols) is 40x40px (with no layout, and the content of the icon symbols has both for width and height ‘Relative’). The size of the nested icon symbol in my badge is 10x10px (with height and width set to ‘fixed’)
  • The badge symbol has width set to ‘fit’ (to adapt to the content) and height set to ‘fixed’, so when I change the text in the badge, the width of the badge automatically grows.
  • However, when I override the placeholder icon symbol with another icon, the icon in my badge instance gets the original size and layer style of the icon symbol, so 40x40px, while it should stay the same size. When I reset the icon override, the icon gets it’s original size back.

Is this a bug or am I forgetting something? With the ‘old’ smart layout the icon didn’t have this problem.

Hi Justin. If you wrap this “Leading icon” into a Group (on its own), this should resolve the issue for you, and the icon should no longer resize when you override it with another one.

Thanks for the reply! I tried that already, and it works for the icon override. But when I want to hide the icon, the gap of the icon stays (and yes my stacked layout is horizontally aligned to ‘start’ and I have ‘Preserve space when hidden’ checked ‘off’ on the icon group).

If you just hide ONLY the nested Symbol (via the Inspector), then the gap of where it was will remain because the Group is still present and is not hidden. The way to do this is to hide the Group itself, via the Layer List. This should give you the result you want. Demo below…

A quick update on this: I’m speaking with the development team now to tweak this behaviour, so any nested Symbols that have been resized will remain at the same resized dimensions when overriding them, rather than resizing to their original dimensions. So if this happens, then this change will be implemented in a future update. Thanks for your patience in the meantime. :folded_hands:

2 Likes

This worked perfectly, thanks a million :raising_hands:t3:

1 Like