fix to pane width calc to prevent disappearing panes