Fixed deprecated textAlignment setting.