Fix issue with overflow in panes after toggleing from header