[TIMOB-9657] iOS: TableView: Swipe event not fired when the view is of certain width
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-04-11T11:48:55.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | 2013 Sprint 08 |
Components | iOS |
Labels | api, qe-and060112 |
Reporter | Satyam Sekhri |
Assignee | Shameer Jan |
Created | 2012-06-20T07:38:46.000+0000 |
Updated | 2013-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();
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
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
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