weex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acton...@apache.org
Subject [1/4] incubator-weex git commit: + [ios] bugfix: textarea placeholder not right
Date Thu, 03 Aug 2017 08:05:16 GMT
Repository: incubator-weex
Updated Branches:
  refs/heads/0.16-dev 665c5bc54 -> e5f560e5c


+ [ios] bugfix: textarea placeholder not right


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

Branch: refs/heads/0.16-dev
Commit: 4ff0d9e6847f2ffc7e64c132b9ec592e5c0d800c
Parents: 1aa0bf4
Author: 齐山 <sunjjbobo@163.com>
Authored: Wed Aug 2 17:08:44 2017 +0800
Committer: 齐山 <sunjjbobo@163.com>
Committed: Wed Aug 2 17:08:44 2017 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/4ff0d9e6/ios/sdk/WeexSDK/Sources/Component/WXTextAreaComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXTextAreaComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXTextAreaComponent.m
index 36eb2ad..21c13e8 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXTextAreaComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXTextAreaComponent.m
@@ -194,7 +194,7 @@ typedef UITextView WXTextAreaView;
     CGRect newFrame = self.placeHolderLabel.frame;
     newFrame.size.height = ceil(expectedLabelSize.size.height);
     newFrame.size.width = _textView.frame.size.width- CorrectX*2;
-    newFrame.origin.x = CorrectX; // the cursor origin.x
+    newFrame.origin.x = CorrectX + _padding.left + _border.left;; // the cursor origin.x
     self.placeHolderLabel.frame = newFrame;
     self.placeHolderLabel.attributedText = attributedString;
 }


Mime
View raw message