fix the issue to set maxWidth.