recreate the window with proper scroll height