Just wondering, should this not be (sh == origHeight)?