Change the font-size into integer type during resizing.