Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9657] iOS: TableView: Swipe event not fired when the view is of certain width

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-04-11T11:48:55.000+0000
Affected Version/sRelease 2.1.0
Fix Version/s2013 Sprint 08
ComponentsiOS
Labelsapi, qe-and060112
ReporterSatyam Sekhri
AssigneeShameer Jan
Created2012-06-20T07:38:46.000+0000
Updated2013-11-07T18:49:32.000+0000

Description

The swipe event on tableview does not fire when the width of the view which contains the tableview is a certain value i.e. 19% or 20%. Checked on few other random width values like 15%,18%, 21%, 25%, 30% on which the event gets fired. The issue occurs only on iPAD and not on iPhone. The issue occurs since 2.0.1. Step to Reproduce: 1. Create an application with the code below and launch the application 2. Swipe on the left view (blue color) which is a tableview Actual: The swipe event is not fired. After the device is rotated, the swipe event gets fired on the same tableview. Expected: The swipe event should fire for all width of the tableview.
Ti.UI.setBackgroundColor('white');
var win = Ti.UI.createWindow();

var tv = Ti.UI.createTableView({
	backgroundColor: 'blue'
});
var leftview=Ti.UI.createView({
	left: 0, top: 0,
	height: 200,
	width: '20%',
	backgroundColor: 'blue'	
});
leftview.add(tv);
var rightview=Ti.UI.createView({
	left: '20%',
	top: 0,
	height: 200,
	width: '100%',
	backgroundColor: 'red'	
});
leftview.addEventListener("swipe", function(){
	alert("swipe")
});
win.add(leftview);
win.add(rightview);
win.open();

Comments

  1. Shameer Jan 2013-04-11

    Issue does not reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPad Simulator: iOS SDK version: 6.0
  2. Paras Mishra 2013-05-10

    Issue is not reproducible Verified on: Device : iPad 2, iOS version: 5.1 SDK: 3.1.1.v20130509173053 CLI version : 3.1.0 OS : MAC OSX 10.7.5 Appcelerator Studio, build: 3.1.0.201305092424 XCode : 4.5.1
  3. Shameer Jan 2013-06-20

    Issue does not reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPad Simulator: iOS SDK version: 5.1 also

JSON Source