hide inactive tab by setting height to 0

Using `display:none` to hide inactive tab panes has an unexpected side effect,
the width becomes unavailable, this causes problems for things like Highcharts
to initialize correctly.

This patch is to hide inactive tabs in a way that the width is still available
via `height:0; overflow-y:hidden;`.

For active tabs, we use `height: auto`.