figma-plugins icon indicating copy to clipboard operation
figma-plugins copied to clipboard

Sorting layers doesn't take into account the shadow

Open iipanda opened this issue 2 years ago • 1 comments

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

iipanda avatar Oct 02 '21 13:10 iipanda

This is likely solvable now with the new absoluteRenderBounds property

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

yuanqing avatar Nov 16 '21 02:11 yuanqing