gridaco / assistant

🤖 Bring your Figma design & development pipeline to the next level - with design to code, in-design-content-management, component management, tools for faster design
https://grida.co/assistant
Other
578 stars 47 forks source link

[Bug] Constraints will print wrong positions if group is selected under other root screen (frame) #171

Open softmarshmallow opened 3 years ago

softmarshmallow commented 3 years ago

Original

Screen Shot 2021-10-11 at 6 13 31 AM

top & bottom removed.

Screen Shot 2021-10-11 at 6 13 17 AM

Problem.

The design to code uses constraints to set the position. this should have worked if the selection was frame, but it was group. so each item will reference the root (the screen frame) to it's relative position, which should't in assistant part selection scenario.

This should be fixed by determining the selection relevance to the scree + check if group.