I'm writing a slider plugin, but the plugin runs within Twitter Bootstrap tabs. I have read over the answer posted here:
jQuery: Get height of hidden element in jQuery
I have the following code in my plugin, but it still comes up with a height of 0 for any tabs that are not the first tab.
$(elem, this).css({'position':'absolute','visibility':'hidden','display':'block'});
heightVal = $(elemToChange, this).height();
$(elem, this).css({'position':'static','visibility':'visible','display':'none'});
console.log(heightVal); // Only correct for first tab.
Do I need to delay this somehow? The js file is included after bootstrap.