auto-fit window height for detail page view.