implement ensure height event for panes