Skip to main content
Jun 13, 2024 9:20 AM UTC
Question

The absolute position setting is lost and locations change after calling group api for an absolute node

As the plugin API document says, the group api allows to create the new group while keeping all the grouped layers in the same absolute x/y locations. However, it dosen’t work as expected in my case:

// the absoluteNode has the layoutPositioning "ABSOLUTE"
figma.group([absoluteNode], absoluteNode.parent);
// the x/y locations of absoluteNode are changed, and the new group has the layoutPositioning "AUTO"

Also, I’ve double checked the “Group selection” menu in Figma editor and it works all right. It seems that there is bug in group API. Hope it to be fixed.

This topic has been closed for replies.

3 replies

Figmate
Jun 17, 2024 1:30 AM UTC

Hi @varpennyli, Thank you for bringing this to our attention.

It’s unfortunate to hear that things aren’t working as expected. I’ll make sure to pass this information along to the relevant teams internally so they can check into it.

Thanks again for flagging this!

Jun 18, 2024 3:18 AM UTC

Here is the detail of the case:

Also you can find the design file from the community:
https://www.figma.com/community/file/1222100666260862670

Hope it helps.

jefflee
Figmate
Figmate
Jul 2, 2024 8:42 PM UTC

I can repro this…we’ll file an internal issue and look into this further. Thanks for the report!