calc the exact max height of tick label