-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[UI Fix] Setting up the initial frame of the textview only when the mana... #29
Conversation
…anager is enabled and we have the flag to adjust the text view. The manager was resetting the frame of the textfield even when the manager was disabled. Signed-off-by: Esteban Torres <me@estebantorr.es>
@hackiftekhar I added this because we were using this on a project where we were modifying the frame of some textviews depending on the text in them and even though we were using this library somewhere else; turning it off was causing issues because this library resets the "original" frame of the textfield even when the library is disabled. |
Thanks for pull request,
So the best way to reset textView's original frame is to capture the frame in textFieldViewDidBeginEditing and at the end when textFieldViewDidEndEditing the original frame which was saved during the textViewDidBeginEditing is restored even if the keyboardManager is enable or not or the canAdjustTextView flag is YES or NO, no matters. But I understand what actual problem you are facing right now. We have to find out a generic solution for this. If you have a better idea I would love to hear from you. Regards |
I see what you mean @hackiftekhar That way if it gets disabled while editing it will still reset the frame and if it was disabled on That way it will handle all you proposed scenarios as well as mine. What do you think of this approach? |
My proposed terms
How about this approach? |
Yeah; that's pretty much the same I proposed but setting the frame to zero vs setting the text filed to nil :) I'll change the pull request in a few if you want and then you can just merge it. On Mon, Mar 10, 2014 at 9:56 PM, Mohd Iftekhar Qurashi
|
…ial frame to CGRectZero if is not enabled). Signed-off-by: Esteban Torres <me@estebantorr.es>
@hackiftekhar I just updated the pull request; see if it fits correctly with your code. |
[UI Fix] Setting up the initial frame of the textview only when the mana...
Perfect (for pull request). Many thanks for the bug report and the contribution to this library. Thanks |
Yeah; probably I spoke too soon about the approaches being the same; truth be told I did not read thoughtfully the whole manager and that caused me to badly asses the solution. Thanks for the merge; keep up with the good work. Could you let me know when you update the Thanks |
Will update soon. |
Hey @hackiftekhar just wondering if there's an ETA for the No pressure I just need to know if I need to make a custom solution instead of using |
You are free to update the Thanks |
ok @hackiftekhar can you create a new Thanks |
Sure |
Tag created pointing to 3.0.2. |
Thanks for updating podspec |
Np. My pleasure to be of any help. |
[UI Fix] Setting up the initial frame of the textview only when the mana... Former-commit-id: 2509a57
...ger is enabled and we have the flag to adjust the text view.
The manager was resetting the frame of the textfield even when the manager was disabled.
Signed-off-by: Esteban Torres me@estebantorr.es