Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting layers doesn't take into account the shadow #35

Open
iipanda opened this issue Oct 2, 2021 · 1 comment
Open

Sorting layers doesn't take into account the shadow #35

iipanda opened this issue Oct 2, 2021 · 1 comment

Comments

@iipanda
Copy link

iipanda commented Oct 2, 2021

Sorting layers shouldn't swap layers if one is overlapping another, and it doesn't, however - if there's a layer with a shadow that is below another layer, they will be swapped anyways.

I'm not sure if my description is clear enough so here's an example:

Before sorting
obraz

After sorting
obraz

@yuanqing
Copy link
Owner

This is likely solvable now with the new absoluteRenderBounds property

https://www.figma.com/plugin-docs/api/FrameNode/#absoluterenderbounds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants