To consider the `box-sizing` property for each target element when calculate and apply the maximum height. This modification is inspired by the issue #2.