When the height of the preview changes, it moves up and down in the viewport