set a maxHeight attribute on the preview