You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2017/07/12 09:37:28 UTC

incubator-weex git commit: * [ios] fix input be coverred by keyboard when navigation bar

Repository: incubator-weex
Updated Branches:
  refs/heads/0.15-dev 904b292bf -> 3d97c0016


* [ios] fix input be coverred by keyboard when navigation bar


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

Branch: refs/heads/0.15-dev
Commit: 3d97c0016614d5b14bc47915b7c224d7321cc7b4
Parents: 904b292
Author: acton393 <zh...@gmail.com>
Authored: Wed Jul 12 17:37:24 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Wed Jul 12 17:37:24 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXEditComponent.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3d97c001/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 8948444..f474719 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXEditComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXEditComponent.m
@@ -558,7 +558,7 @@ WX_EXPORT_METHOD(@selector(getSelectionRange:))
         if (offset > 0) {
             rect = (CGRect){
                 .origin.x = 0.f,
-                .origin.y = -offset,
+                .origin.y = rect.origin.y - offset,
                 .size = rootViewFrame.size
             };
         }