rectif with offsetHeight instead of style.height