Fix adjusting text size when resizing.