I am trying to log a hidden elements height after page re-size using.
http://dreamerslab.com/blog/en/get-hidden-elements-width-and-height-with-jquery/
The script works and logs a height on page load but after resizing it reverts to 0. I need to get the height of this element to fix my slidedown jump bug.
Currently I have
jQuery(document).ready(function(){
doResize();
jQuery(window).on('resize', doResize);
$("#one").hide();
$("#two").hide();
$("#three").hide();
$("#four").hide();
$(".orangetoggle").hide();
});
function doResize() {
var orangeheight = $('.orangetoggle').actual('height');
console.log(orangeheight);
}
A live example of my bug is *hidden when you re-size the log outputs 0. But once you press the + / - it will log a height.
Thanks