You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the anchors of a group that has an asymmetric size (i.e. the origin is not in the center of the group), the anchor calculation for that group is inconsistent. Depending on where the anchor is being used (as the anchor parameter for the group or as part of a relative coordinate), different coordinates end up being calculated.
uses the north anchor of the group twice. Once when defining the group to determine that the group shall be anchored at its north side. The second time the anchor is being used as part of the relative position of the second content element. Again, this element is placed at the group's north. Since both content elements are placed at the group's north, i would expect them to be placed at the exact same position. However, the following is what's actually being rendered:
The text was updated successfully, but these errors were encountered:
I've tested this. This is not a bug. The documentation specifies how the group anchor works:
You have to set an anchor called "default" as the groups origin (anchor("default", pos) in your case). I've opened a PR with a test-case.
When using the anchors of a group that has an asymmetric size (i.e. the origin is not in the center of the group), the anchor calculation for that group is inconsistent. Depending on where the anchor is being used (as the
anchor
parameter for the group or as part of a relative coordinate), different coordinates end up being calculated.Example: The following code
uses the
north
anchor of the group twice. Once when defining the group to determine that the group shall be anchored at its north side. The second time the anchor is being used as part of the relative position of the secondcontent
element. Again, this element is placed at the group's north. Since bothcontent
elements are placed at the group'snorth
, i would expect them to be placed at the exact same position. However, the following is what's actually being rendered:The text was updated successfully, but these errors were encountered: