We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1cfc1d commit 1a7834eCopy full SHA for 1a7834e
YYText/YYTextView.m
@@ -2421,7 +2421,7 @@ - (void)setFrame:(CGRect)frame {
2421
CGSize oldSize = self.bounds.size;
2422
[super setFrame:frame];
2423
CGSize newSize = self.bounds.size;
2424
- BOOL changed = _innerContainer.isVerticalForm ? (oldSize.height != newSize.height) : (oldSize.width != newSize.width);
+ BOOL changed = _innerContainer.isVerticalForm ? CGSizeEqualToSize(oldSize, newSize) : (oldSize.width != newSize.width);
2425
if (changed) {
2426
[self _updateInnerContainerSize];
2427
[self _commitUpdate];
0 commit comments