With core<1.8 and the element having `box-sizing: border-box` this will set the wrong width/height. I'm not really sure how to deal with it, apart from actually checking the element's box-sizing here and using the appropriate width. Any ideas/comments?