TextView within TableViewRow scrolling/jumping when focussed

You must Login before you can answer or comment on any questions.

Titanium Version 1.2.2 with Mobile 1.6.0 for iOS

Description: If you create a modal window with TableView that contains TableViewRows with TextField controls, the TableView is scrolling/jumping to a wrong position when focussed.

Additional note: Scrolling/jumping does not occure when number of TableViewRows > available screen height. You can use a pseudo-workaround by setting the height of TableView to the exact height of all TableViewRows, but this helps in Simulator (no Retina) only.

How to reproduce: Create an empty Titanium project and replace the content of app.js with the source in this GIST, then run in Simulator test.

1 Answer

Temporary workaround to fix the scrolling/jumping behaviour: You can fill up the empty space at the bottom of the TableView by setting the "footerTitle" property to linebreaks only. Example:

Ti.UI.createTableView({footerTitle: '\n\n\n\n\n'});
Note: You may need to add additional linebreaks depending on how many rows the TableView has

I've also created a corresponding ticket at lighthouseapp: Ticket #3354

Your Answer

Think you can help? Login to answer this question!