You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by kf...@apache.org on 2017/08/31 09:52:44 UTC

[3/4] incubator-weex git commit: * [ios] fix input component

* [ios] fix input component


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/4dada160
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/4dada160
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/4dada160

Branch: refs/heads/0.16-dev
Commit: 4dada160c4387834ca86d1dfcea8918d3da0be5f
Parents: 3faa6f9
Author: acton393 <zh...@gmail.com>
Authored: Thu Aug 31 17:30:54 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Thu Aug 31 17:30:54 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXEditComponent.m | 5 -----
 1 file changed, 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/4dada160/ios/sdk/WeexSDK/Sources/Component/WXEditComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXEditComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXEditComponent.m
index c9d1202..1136c79 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXEditComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXEditComponent.m
@@ -767,12 +767,7 @@ WX_EXPORT_METHOD(@selector(getSelectionRange:))
     if(![self.view isFirstResponder]) {
         return;
     }
-    CGRect begin = [[[notification userInfo] objectForKey:@"UIKeyboardFrameBeginUserInfoKey"] CGRectValue];
-    
     CGRect end = [[[notification userInfo] objectForKey:@"UIKeyboardFrameEndUserInfoKey"] CGRectValue];
-    if(begin.size.height <= 44) {
-        return;
-    }
     _keyboardSize = end.size;
     UIView * rootView = self.weexInstance.rootView;
     CGRect screenRect = [[UIScreen mainScreen] bounds];