Panel: Set max-height for closed panel. Fixes #5843 - Page div gets a vertical scrollbar on IE9 if panel is longer than page content.