Fix calculation of spin box width