Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1904] IOS: TableView touchEnabled:false disables scrolling

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-02-02T01:07:09.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labels3.0.0.GA, ios, mobilesdk, scroll, tableView, touchEnabled
ReporterMark Mokryn
AssigneeShak Hossain
Created2013-01-18T11:33:07.000+0000
Updated2016-03-08T07:40:49.000+0000

Description

Setting touchEnabled:false on a TableView in IOS disables the table's scrolling. Seems a bug since there is a separate scrollable property. Easily demonstrated on Kitchen Sink 3.0 for any table view that is large enough to be scrolled - e.g. the performance table view.

Comments

  1. Eduardo Gomez 2013-02-02

    Please review the Jira checklist[|http://docs.appcelerator.com/titanium/latest/#!/guide/How_to_Submit_a_Bug_Report-section-29004732_HowtoSubmitaBugReport-JIRATicketChecklist] and provide missing info. We can't escalate incomplete test cases. I'd reopen when info is available.
  2. Mostafizur Rahman 2014-01-07

    Hello, We test this issue with the test code below. We can’t reproduce this issue with latest SDK. Please check test code and let me know if you have any problem.

    Test Environment:

    Mac OS X 10.8.6 Ti SDK 3.2.0.GA Ti CLI 3.2.0 IOS simulator 7.0.3

    Test Code

       Ti.UI.setBackgroundColor('#000');
       var win = Ti.UI.createWindow({
         backgroundColor: 'black',
         exitOnClose: true,
         fullscreen: false,
         title: 'TableView Demo'
       });
        
       // Create scroll view
        
       var view = Titanium.UI.createScrollView({
           width:'100%',
           height:'400',
           contentHeight:1000,
           backgroundColor:'white'
       });
        
        
        
       var tableData = [];
        
       for (var i=1; i<=40; i++){
         var row = Ti.UI.createTableViewRow({
           className:'forumEvent', // used to improve table performance
           selectedBackgroundColor:'white',
           rowIndex:i, // custom property, useful for determining the row during events
           height:110,
           touchEnabled:false
         });
         // Create label 
         var labelUserName = Ti.UI.createLabel({
           color:'#576996',
           text:'Fred Smith ' + i,
           left:70, top: 6,
           width:200, height: 30
         });
         row.add(labelUserName);
         
          
         tableData.push(row);
       }
       // Create table view
       var tableView = Ti.UI.createTableView({
         backgroundColor:'white',
         data:tableData
       });
        
        // Add to parent
       view.add(tableView);
       win.add(view);
       win.open();
       
       
    Thanks
  3. Shak Hossain 2014-01-15

    Closing the issue since it can't be reproduced. We posted a sample that we used to test the scenario.

JSON Source