diff --git a/Framework/Info.plist b/Framework/Info.plist
index 61718cda..81c339ae 100644
--- a/Framework/Info.plist
+++ b/Framework/Info.plist
@@ -15,7 +15,7 @@
CFBundlePackageType
FMWK
CFBundleShortVersionString
- 1.0.6
+ 1.0.7
CFBundleSignature
????
CFBundleVersion
diff --git a/YYText.podspec b/YYText.podspec
index d20ea820..05896a4d 100644
--- a/YYText.podspec
+++ b/YYText.podspec
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = 'YYText'
s.summary = 'Powerful text framework for iOS to display and edit rich text.'
- s.version = '1.0.6'
+ s.version = '1.0.7'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.authors = { 'ibireme' => 'ibireme@gmail.com' }
s.social_media_url = 'http://blog.ibireme.com'
diff --git a/YYText/YYTextView.m b/YYText/YYTextView.m
index ce5d3464..01b1629a 100644
--- a/YYText/YYTextView.m
+++ b/YYText/YYTextView.m
@@ -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 ? CGSizeEqualToSize(oldSize, newSize) : (oldSize.width != newSize.width);
+ BOOL changed = _innerContainer.isVerticalForm ? (oldSize.height != newSize.height) : (oldSize.width != newSize.width);
if (changed) {
[self _updateInnerContainerSize];
[self _commitUpdate];