fix subelement height calculation
Merge pull request #1 from wadealer/master

fix subelement height calculation