Fix view problems when previewing it in the IDE.