-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi textview placeholder position #1256
Comments
Hi, please add more details, code, and the actual problem you are facing. Thank you! We would be happy to help when we have that information. Until, I will close this issue. |
my code
let textview1 = TextView()
textview1.placeholder = "请输入原因"
textview1 font = UIFont.systemFont(ofSize: 14)
self.addSubview(textview1)
override func layoutSubviews() {
super.layoutSubviews()
textView.frame = bounds
}
In TextView ,I fond this code
The height of the placeorder lable minimumTextHeight = 35
h = max(h, minimumTextHeight)
h = min(h, bounds.height - insets.top - insets.bottom)
by minimumTextHeight
在 2019-08-24 21:14:40,"Daniel Jonathan" <notifications@github.com> 写道:
Closed #1256.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I will reopen this issue, and we will take a look at it this week, latest next week. Thank you! |
@nodle-J @DanielDahan I see the issue.. |
@nodle-J thank you for your patience - I will keep this ticket up until we have a fix. 👍 |
@adamdahan is this happening only when we have Chinese characters? |
@OrkhanAlikhanov So far, yes. |
It is Font less than 17 ,I think I don't understand h, I set font less than 17 but minimumTextHeight is constant 。 I canceled this code . h = max(h, minimumTextHeight) Its all right I have just learned swift thanks |
@nodle-J We have started an internal conversation to re-write this component. For now a simple fix would be to set the
For your specific use case. We will push a fix soon that's more appropriate for everyone! Thank you for submitting this issue and getting us to notice :) |
Linking the task issue: #1264 |
I'd love to.
Thank you very much
At 2019-09-10 21:26:08, "Adam Dahan" <notifications@github.com> wrote:
@nodle-J I have confirmed that this does indeed solve the issue with no reprocussions. Would you like to submit a pull request that removes lines 425 & 426 from TextView.swift?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I try to add textview in view
The text was updated successfully, but these errors were encountered: