Fixes tab panes.

* Resize didn't work as expected.
* Firefox displayed unnecessary scrollbars.