compute style width and height without padding