Calc the size of buttons based on the text label on it to fix the button clipping on windows.