Bugfix: wrong height calculation for boundingBox and contentBox in horizontal mode