Animation anchor points shift with screen orientation

I have a theme that change layout based on screen orientation, during testing everything is fine but after a while the anchor points of my animations seem to shift causing the animation to overlap other object or to animate incorrectly.

the animation in question is a icon cover that is suppose to slide off when touched to reveal the picture below.

The correct animation is suppose to scale horizontally from right to left, but after rotation is also moves to the left.

In landscape mode the same animation now scale to the middle, getting smaller on both sides.

I can provide pictures if the issue isn't clear enough.

thank you

Exact same kind of bug with me