[AC-1904] IOS: TableView touchEnabled:false disables scrolling
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Needs more info |
| Resolution Date | 2013-02-02T01:07:09.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | 3.0.0.GA, ios, mobilesdk, scroll, tableView, touchEnabled |
| Reporter | Mark Mokryn |
| Assignee | Shak Hossain |
| Created | 2013-01-18T11:33:07.000+0000 |
| Updated | 2016-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.
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.
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.3Test Code
ThanksTi.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();Closing the issue since it can't be reproduced. We posted a sample that we used to test the scenario.