Fix ruler value position problem in differnt screen size.