Overlay not obeying layer hierarchy after click

Hey everyone,
I have a toggle switch which toggles between “Daily”, “Weekly” and “Monthly”, and the data it shows changes based on the granularity.

I’ve created an overlay symbol, where I have one symbol for each- Daily, weekly, and monthly and the different buttons on the toggle switch connect to their weekly and monthly symbols. It works as intended when I test it individually in preview mode.

The problem is when I put it in a group with other layers, and this particular symbol layer is say at the bottom of the layer hierarchy, if I click the toggle to show weekly, and monthly views, they actually jump to the top of the layers list and I can see it overlapping status bars and other controls during prototype preview mode.

Anyone know how to ensure that doesn’t happen?

Thanks

Hey @hone_w, thanks for posting!

Have you marked the option to fix the position of these Symbols while scrolling? See, like this:

If the Group where you put this Symbol has that option ticked, this is probably the reason behind the issue.

If not, I’d like to take a look and test it if you don’t mind. Could you send a copy of this document, or at least part of the document that includes these Symbols and Group? You can attach it to an email, we’re at productsupport@sketch.com.

Additionally, in your message, please let us know the version of Sketch you’re using.

1 Like

Thanks @JorgeF

Have just written to the product support, addressed to you. I have attached a file with the symbol in it, with steps to reproduce the issue.

Hope this helps.