1
NGUI 3 Support / Re: Scrollbar Foreground image scaling
« on: January 17, 2013, 06:07:53 PM »
I looked at the code for UI scrollbar and noticed that the foreground is scaled to fit inside the "center" slice of the background sliced sprite. So if your scrollbar is vertical and it is a sliced sprite with borders specified for the left and right. The foreground image will be squashed horizontally to fit in the center slice. One solution is to set the left and right borders to zero for the background for a vertical scrollbar and set the top and bottom borders to zero for the background for a horizontal scrollbar.
