fixed bug when "display: none" causes text y value to double up