fixed a height computation bug when user zooms