Resize: Fixed text size detection (fixes #3637)