unit – How to resize a sprite on the x-axis to touch the point?

I have a sprite.
The pivot is at a random point.
I want to increase the sprite scale on the x-axis until I reach a point on the right.
I have a method to set / add a size.
I calculate a distance between the edge of a sprite and a specific point and add it as a size.

The problem is that the sprite's scale increases its size in both directions of the x-axis (left and right) since the pivot is not at the left edge .
How to solve the problem?

J & # 39; have:

View post on imgur.com

I want to obtain: