jQuery: The Write Less, Do More JavaScript Library

tabSwitch - dynamic height

View: New views
1 Messages — Rating Filter:   Alert me  

tabSwitch - dynamic height

by Sigfrid :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello guys,
I'm using tabSwitch (www.hieu.co.uk/blog/index.php/tabswitch/) and I
need to set the panel height dynamically (according to the div
'page_container' height) so I tried

var page_height =  $('#page_container').height();
$('.panel').tabSwitch('create', {type: 'slide', loopback: 1, height:
page_height, width: 575, speed: 100 });

but looks like it doesn't work: the panel arrives until the end of the
page (instead having the same height of 'page_container'.


However if I fix the height  everything works fine but it is not what
I need
$('.panel').tabSwitch('create', {type: 'slide', loopback: 1, height:
200, width: 575, speed: 100 });


Is there a way to dynamically set the height? Am I missing something?

THANKS

Sig
Alla prossima ...