fix layout calculations when the boxSizing is `content-box`