Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-6109

Groups with invisible items are misplaced on import

    XMLWordPrintable

Details

    • All
    • 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. 

      Attachments

        1. image-2022-01-28-21-35-22-601.png
          8 kB
          Aleksei German
        2. image-2022-01-28-22-10-33-384.png
          3 kB
          Aleksei German

        Activity

          People

            vikas Vikas Pachdha
            algerman Aleksei German
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: