adding changes to fix the auto height adjustment issue for edit pane