[3066] fix linting issue when accessing offsetHeight for redraw hack