auto-close bottom pane if too small - issue #337