auto-resize height to fit page