Fixing bug when partial inner contents height match container height.

There seems to be a bug when partial contents height exactly matches the container height. The content is truncated, but the after element is not displayed.