function tmrRedrawPanel() { $('#article').css('height', 'auto'); $('#article').trigger('x-height-change'); $('#article').trigger('resize'); } function customCss() { $('.article').css('height', 'auto'); } if (window.addEventListener) { window.addEventListener('load', customCss); } else if (window.attachEvent) { window.attachEvent('onload', customCss); } else { window.onload = customCss; }