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

iOS: Ti.UI.TableView containing a Ti.UI.TableViewRow containing a Ti.UI.TextField adds blank space at the bottom

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 1.8.2
    • Fix Version/s: Release 2.1.0, Sprint 2012-08
    • Component/s: iOS
    • Environment:

      Titanium SDK version: 1.8.2
      Platform & version: iOS 5.0 simulator
      Host Operating System: OSX 10.7.2
      Titanium Studio version: 1.0.9.201202141208

      Description

      Code

      var win = Ti.UI.createWindow({
      	fullscreen : false,
      	backgroundColor : 'white'
      });
       
      var tableView = Ti.UI.createTableView({
      	top : '0dp',
      	bottom : '0dp',
      	left : '0dp',
      	right : '0dp'
      });
       
      var numRows = 15;
      var rows = [];
      for (var i = 0; i < numRows; i++){
      	var tableViewRow = Ti.UI.createTableViewRow({
      		height : 'auto'
      	});
      	
      	var textField = Ti.UI.createTextField({
      		top:'0dp',
      		left : '5dp',
      		right : '5dp',
      		borderColor : '#CCCCCC',
      		borderStyle : Ti.UI.INPUT_BORDERSTYLE_BEZEL
      	});
      	
      	tableViewRow.add(textField);
      	
      	rows.push(tableViewRow);
      }
      tableView.data = rows;
      win.add(tableView);
      win.open();
      

      Expected behavior
      When tapping on one of the Ti.UI.TextField objects, and then pressing the 'return' key on the keyboard, it should work fine, without any issues.

      Actual behavior
      When you do the above, once the keyboard slides down, you can scroll down the Ti.UI.TableView, meaning extra, unnecessary entries have been added to the list. This was not possible, before you focused on a Ti.UI.TextField object.

      Notes
      -Only tested on the iOS simulator.
      -Will update customer priority, once I get a reply.
      -HD ticket: http://support-admin.appcelerator.com/display/APP-929387

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mstepanov Max Stepanov
                Reporter:
                jyounus Junaid Younus
              • Watchers:
                0 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code