Skip to content

Commit

Permalink
Ensure backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Dasmer Singh committed Dec 22, 2015
1 parent 6b1e789 commit a6c26aa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions VENTokenField/VENTokenField.m
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,11 @@ - (void)adjustHeightForCurrentY:(CGFloat)currentY
height = self.originalHeight;
}
}
if (oldHeight != height
&& [self.delegate respondsToSelector:@selector(tokenField:didChangeContentHeight:)]) {
[self.delegate tokenField:self didChangeContentHeight:height];
if (oldHeight != height) {
[self setHeight:height];
if ([self.delegate respondsToSelector:@selector(tokenField:didChangeContentHeight:)]) {
[self.delegate tokenField:self didChangeContentHeight:height];
}
}
}

Expand Down

0 comments on commit a6c26aa

Please sign in to comment.