Skip to content

Commit

Permalink
bugfix for vertical form: #483
Browse files Browse the repository at this point in the history
  • Loading branch information
ibireme committed Sep 13, 2016
1 parent e1cfc1d commit 1a7834e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YYText/YYTextView.m
Original file line number Diff line number Diff line change
Expand Up @@ -2421,7 +2421,7 @@ - (void)setFrame:(CGRect)frame {
CGSize oldSize = self.bounds.size;
[super setFrame:frame];
CGSize newSize = self.bounds.size;
BOOL changed = _innerContainer.isVerticalForm ? (oldSize.height != newSize.height) : (oldSize.width != newSize.width);
BOOL changed = _innerContainer.isVerticalForm ? CGSizeEqualToSize(oldSize, newSize) : (oldSize.width != newSize.width);
if (changed) {
[self _updateInnerContainerSize];
[self _commitUpdate];
Expand Down

0 comments on commit 1a7834e

Please sign in to comment.