adjust info pane height automatically for overflow