Fixed layout responsiveness js script by adding a minimum document height for which the main panel can be resized to