Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
QDS 2.3
-
None
-
-
QDS Berlin - 2022 Week 15/16
Description
Apparently, there are multiple problems in this issue and they stack on top of each other, but the easiest fix for now would be, probably, in importer.
Problem itself appears from the way Figma itself handles Groups (so far only Groups cause this issue, nothing like yet was noticed with Frames or any other type), in our case, Groups that consist of items with visibility property turned off:
Such groups lose their width and height values (0, 0 values assigned. In Figma UI it's called "Mixed") since all their content is invisible. Their children items still maintain their sizes.
Export phase generates expected metadata, that preserves* x and y properties of the group and 0, 0 sizes.
*-X and Y of a Figma Group with invisible items is based on which item (inside the group) is invisible and which was turned invisible last and where top left of render bounds of the group was before going completely invisible. This X and Y issue is already somewhat managed by plugin, so it's not a critical issue, but still can create minor confusion on groups position in QDS.
However, and here is the main problem, after the import into QDS, groups X and Y properties are assigned to 0, 0. This somewhy happens because of the size properties being 0, 0. It can be verified by manually editing generated metadata and changing group item W and H properties and reimporting the same project.
Probably, the issue should be fixed in importer, since it should not fail positioning for "sizeless" items.