fix a bug of offsetHeight