Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
QDS 4.1
-
None
Description
Here is the QDS I'm using.
I attached the project "test_proj" to reproduce the issue.
It has git logs respectively for "before importing the first design" "after importing the first design" and "after importing the third design" to make it easier for you to see the behavior.
The project also has .qtbridge under test_proj/figma_design_projects.
The first design(test_proj/figma_design_projects/ver1/alignment.fig) has a Frame and a Rectangle inside.
The Rectangle is anchored to the center of the Frame.
As I imported this(test_proj/figma_design_projects/ver1/alignment.qtbridge), I got this result.
The generated QML has "anchors.centerIn : parent," which is good.
Now in the next design(test_proj/figma_design_projects/ver2/alignment.fig), I changed the anchoring of the Rectangle to bottom right.
When I imported this design(test_proj/figma_design_projects/ver2/alignment.qtbridge), I got this result.
As you can see, the Rectangle is still centered. This is because anchors.centerIn: parent is still there in the code, where it should've been removed.
Attachments
Issue Links
- duplicates
-
QDS-6913 Merging QML can create incompatible anchors and position values.
- Closed