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

Android: TableViewRow - Longpress on tableViewRow gives a RunTime Error

    Details

      Description

      Description:
      Longpress on tableViewRow gives a RunTime Error.

      This is a regression, does not occur on 2.1.3

      Steps:
      1. Run the following code:

      var _window = Titanium.UI.createWindow({backgroundColor:'white'});
      		
      		var row = Titanium.UI.createTableViewRow({
      			height : 'auto'
      		});
      		var view = Titanium.UI.createView({
      			backgroundColor : 'red',
      			width : '90%',
      			height : '40'
      		});
      		
      		row.add(view);
      		row.addEventListener('longpress', TableViewRowLongPress);
       
      		var table = Titanium.UI.createTableView();
      		table.appendRow(row);
      		_window.add(table);
       
      		function TableViewRowLongPress(evt) {
      			alert('*TableViewRow longpress');
      		}
       
      		_window.open();
      

      2. Long press on a red view

      Expected:
      Should get an alert "*TableViewRow longpress"

      Actual:
      RunTime Error

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                krowley Karl Rowley
                Reporter:
                tsmolich Tamila Smolich
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration