How to change image height without changing in x y.

Hi,
I am working on 2D game in Unity 4.3. I have a spring Image, which I want to change its height on finger swipe, I can change via using “transform.localscale” of that Image but whats happening its position also change on size changing. I want to stick its position but just to grow and decrease image size on Swipe. I also attached image whats happening on left spring, its size but it also goes up of white line, this I don’t want to do. Kindly suggest me some better approach to accomplish this task. Thanks in advance.
[20371-screen+shot+2014-01-08+at+5.33.24+pm.png|20371]

[20372-screen+shot+2014-01-08+at+5.34.46+pm.png|20372]

No it’s position is not changed when you scale it. What changes is position of both ends relative to it’s position. And in sprites objects position corresponds to sprite pivot point.

So what you need to do is set sprite pivot point to start of your spring (left or right if your spring sprite is horizontal or to top and bottom if it is vertical). And than scaling will keep it’s beginning stationary and will move only other end.