handle rects bigger than packer height for isHorizontal