Computing height for splitpanel. Closes #543.