Skip to content

Alignment methods do not have stable pixel rounding #145

Description

@NickEntin

It's possible to get into an unstable alignment loop where each layout pass a view is moved back and forth by 1 pixel.

The root cause of this is our alignment methods calculate the source view's new position based on the offset from its current position to correct position in the target view. If this offset pushes it just far enough back and forth to round to pixel in the opposite direction, you end up in an unstable loop.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working as expected

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions