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

Reply via email to