Skip to content

Commit 1a7834e

Browse files
committed
bugfix for vertical form: #483
1 parent e1cfc1d commit 1a7834e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

YYText/YYTextView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2421,7 +2421,7 @@ - (void)setFrame:(CGRect)frame {
24212421
CGSize oldSize = self.bounds.size;
24222422
[super setFrame:frame];
24232423
CGSize newSize = self.bounds.size;
2424-
BOOL changed = _innerContainer.isVerticalForm ? (oldSize.height != newSize.height) : (oldSize.width != newSize.width);
2424+
BOOL changed = _innerContainer.isVerticalForm ? CGSizeEqualToSize(oldSize, newSize) : (oldSize.width != newSize.width);
24252425
if (changed) {
24262426
[self _updateInnerContainerSize];
24272427
[self _commitUpdate];

0 commit comments

Comments
 (0)