note to callers of adjustPanelHeight