Uses the inner width of the element for constraining against when measuring height. This takes padding into account so that the measured height is correct.