Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-14529

iOS: TextField focus doesn't work when TextField isn't visible

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Release 3.1.1, Release 3.2.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      Macbook Pro, OSX 10.7.5, iOS Simulator v. 6.0 (369.2). Ti: 3.1 GA

      Description

      Problem
      TextField focus doesn't work when TextField isn't visible on a screen.

      Steps to reproduce
      1. Launch app
      2. When you stay on the top of a TableView you can see first TextField there focus work without any problem
      3. Try to hide shown keyboard for first TextField and scroll/move to the bottom of a TableView (There the focus doesn't work)

      Test case

       
      var win = Ti.UI.createWindow();
      var table = Ti.UI.createTableView({
      	style : Ti.UI.iPhone.TableViewStyle.GROUPED
      });
      var data = [];
       
      for (var i = 0; i < 20; i++) {
      	var row = Ti.UI.createTableViewRow({
      		width : Ti.UI.FILL,
      		height : Ti.UI.FILL
      	});
      	var tField = Ti.UI.createTextField({
      		width : Ti.UI.FILL,
      		height : "100%"
      	});
       
      	row.add(tField);
      	data.push(row);
      }
       
      table.data = data;
       
      win.add(table);
      win.open();
       
      setInterval(function() {
      	data[0].children[0].focus();
      }, 3000);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sko Matej
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-16971
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration