Switching tabs whose content is scrollable makes that content lose its scroll position
Bootstrap 2.0.3
Example here : http://jsfiddle.net/M6NQJ/3/
So the problem is, I have a few Tabs and some of them have scrollable DIVS, such as a big tables with a vertical scroll bar. Now if you scroll down on such a table on Tab#1, then switch to another tab, then switch back to Tab#1, that table just scrolled right back to the top instead of staying scrolled to where it was scrolled before.
I believe this has to do with the Bootstrap Tab script that changes the content's 'display' attribute to 'none' on tabs that are deactivated, which would make their content's height equal to 0, and thus the scrollable area nil.
Anyone can think of a quick fix for this?
Add your own JS to save the current scroll position when hiding a tab and restore it when showing a tab.
This isn't something bootstrap is probably going to handle. Better off just rolling a custom solution for this. Thanks!