I had need for a button where the border of the sprite scaled instead of the center, so I modded CCScale9Sprite to add a parameter fixedCenter (default to false). When set, the center section inside the capInset does not get scaled, and the borders get scaled to make up the difference.
Attached is the code. Please add to next release.
CCScale9Sprite.zip (8.6 KB)