You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2019. It is now read-only.
If I set maxNumberOfLines = 3, press return key on keyboard after line number grows to 2 will cause textview's _UITextContainerView frame issue.
for example, HPTextViewInternal's frame is {0,0,100,50} when I have two lines, it changes to {0,0,100,60} when I have three lines, but _UITextContainerView's frame is still {0,0,100,50}, it causes the UI issue. It looks like this:
I look into the code, find that when this case happens, - (void)drawRect:(CGRect)rect of HPTextViewInternal will receive a rect's y point which has a negative value such -10,
After I change
if (newSizeH <= maxHeight)
in - (void)refreshHeight which in HPGrowingTextView.m to
if (newSizeH < maxHeight)
the precent of this case chance change from 100% to 10%,
Anyone can help? Please forgive my poor description.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If I set maxNumberOfLines = 3, press return key on keyboard after line number grows to 2 will cause textview's _UITextContainerView frame issue.
for example, HPTextViewInternal's frame is {0,0,100,50} when I have two lines, it changes to {0,0,100,60} when I have three lines, but _UITextContainerView's frame is still {0,0,100,50}, it causes the UI issue. It looks like this:
I look into the code, find that when this case happens, - (void)drawRect:(CGRect)rect of HPTextViewInternal will receive a rect's y point which has a negative value such -10,
After I change
if (newSizeH <= maxHeight)
in - (void)refreshHeight which in HPGrowingTextView.m to
if (newSizeH < maxHeight)
the precent of this case chance change from 100% to 10%,
Anyone can help? Please forgive my poor description.
The text was updated successfully, but these errors were encountered: