Procházet zdrojové kódy

rollback to old commit

ibireme před 9 roky
rodič
revize
02eba9ffd3
3 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 1 1
      Framework/Info.plist
  2. 1 1
      YYText.podspec
  3. 1 1
      YYText/YYTextView.m

+ 1 - 1
Framework/Info.plist

@@ -15,7 +15,7 @@
 	<key>CFBundlePackageType</key>
 	<string>FMWK</string>
 	<key>CFBundleShortVersionString</key>
-	<string>1.0.6</string>
+	<string>1.0.7</string>
 	<key>CFBundleSignature</key>
 	<string>????</string>
 	<key>CFBundleVersion</key>

+ 1 - 1
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'

+ 1 - 1
YYText/YYTextView.m

@@ -2421,7 +2421,7 @@ typedef NS_ENUM(NSUInteger, YYTextMoveDirection) {
     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];