I am currently attempting to determine the height of a hidden element after the page has been resized. More details can be found at this link:
The script is able to successfully log the height upon page load, but when the page is resized, it goes back to 0. I require this element's height to address a bug related to slidedown movement.
At the moment, the script I am using is as follows:
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);
}
An example of the bug can be seen live, where upon resizing, the log shows 0. However, upon clicking the + / - buttons, it successfully logs the height.
Thank you.