motion-kit/motion-kit — pull request #36 by jhmegorei (2014-06-12 14:44:16+00:00)
Title: Reapply bug

Some days ago I tried to make my layout orientation aware. I created a simple layout and tried to position some views according to the devices orientation (specifically: a button that was always supposed to be at the bottom center of the screen).

Doing that, I discovered, that reapplying the frames of existing views, alters their position (by adding parts of the old origin as far as I could understand the code so far). This happens for all frame helpers except from_top_left (did not yet try relative layouts).

I created a test case for better understanding.
The layout is quite simple: 10x10 squares in the 9 corners of the screen that have helpers assigned.
My expectation is, that when I reapply the layout, the squares stay in their place. But they do not.

I suppose this is not the intended behaviour.