Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery UI Tabs - Automatic Height

In previous versions of jQuery tabs there was an option to automatically set the height of the tab to that of the tallest tab in the group using:

$('#container').tabs({ fxAutoHeight: true });

However this does not seem to work in jQuery UI 1.5.3.

Has this option been removed? If so is there another way to get the same functionality?

like image 776
Ben Avatar asked Jan 12 '09 19:01

Ben


1 Answers

All you have to do is to set a min-height. (It's taken me ages to find the answer to this .. I hope it helps!).

Here is my code that really works:

$("#tabs").tabs().css({
   'min-height': '400px',
   'overflow': 'auto'
});
like image 133
Lee Alesbrook Avatar answered Oct 04 '22 07:10

Lee Alesbrook