fix zero clientWidth/clientHeight issue in Firefox