Keyboard hides textfield in last row of tableview
I have a tableview with a few rows of data. My last row has a textfield in it. When the textfield receives focus, the keyboard pops up and pushes the row above the keyboard just as I expect.
When I "done" the keyboard, it goes away as expected. If I scroll back to the top of the tableview and focus on the textfield again, the keyboard goes over top of the textfield, it won't move the row above the keyboard like it did previously. I can't see the text in the textfield I'm editing. Why is this? Smells like a bug to me.
2 Answers
-
Probably a bug, but you can "hackfix" it by putting a "ScrolltoTop()" or "ScrolltoIndex(0);" when the TextArea is clicked.
-
I ended up writing a function to figure out what value i needed to stub in the float parameter for scrollToTop() and now I have it adjusting properly. Kind of strange, this work around should work for now, but it definitely seems like a bug somewhere.