Use height in y offset calculations for rectangle