GUI texture scaling problem.

Hi All,

I am curently building a way to visualize stats by using a statsbar. I have chosen the method in the picture below.

1602340--96795--$stats.png

Low values of a particular stat lead to a shorter bar. 12 is the max and 0 is no bars at all. I thought I could easily do this by using ScaleMode.ScaleAndCrop, but unfortunately, if I shorten the bar to a shorter length, the picture below is the result. It also cuts off part of the bar on the left. I have no idea how to solve this. Does anyone have a suggestion?

1602340--96796--$stats2.png

The texture that I am using:
1602340--96797--$statsbar12.png

I solved it by using GUI.BeginGroup for every stat. Not very nice code, but it works.