added resize to scaletext.