Round to the nearest point when doing layout calculations

This will avoid partial pixel results where the height, width, or offsets are "sub-pixel" values like 11.25.