fix height to container or first pane - whichever is larger