Skip to content

Vertically align/resize nested objects #10

@alssndro

Description

@alssndro

Currently this isn't possible since Sketch returns position coordinates that are relative to its parent, rather than 'absolute' coordinates of the nested object on the entire artboard.

e.g. Draw a rectangle on a fresh artboard at y: 10. The Sketch API will return a y-coordinate of 10. Now, put the same rectangle in a group (Cmd+G). The Sketch API will now return a y-coordinate of 0 (but 10 for the group itself).

This would be a super easy fix, however there doesn't currently seem to be a way to retrieve these 'absolute' coordinates, or even access the positional info of a nested object's parent.

I will continue to look into this since it massively reduces the usefulness of this particular plugin.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions