[TIMOB-11335] iOS: Table view row selected background doesn't fade out when backgroundGradient is set
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-01-07T10:37:15.000+0000 |
| Affected Version/s | Release 2.0.2, Release 2.1.2, Release 2.1.3, Release 3.0.0 |
| Fix Version/s | Release 3.0.1, Release 3.1.0, 2013 Sprint 01 API, 2013 Sprint 01, Release 1.8.3 |
| Components | iOS |
| Labels | api, module_tableview, qe-review, qe-testadded, triage |
| Reporter | Daniel Sefton |
| Assignee | Vishal Duggal |
| Created | 2012-10-09T23:17:26.000+0000 |
| Updated | 2013-04-29T22:11:37.000+0000 |
Description
*Expected behavior*
On touch end the selected background should fade out.
*Actual behavior*
On touch end the selected background disappears instantly and there is a delay period when the title text remains in selected state.
*Note*
Remove the backgroundGradient property and see that the selected background fades out as expected on touch end.
*Code*
var win = Ti.UI.createWindow();
var tableview = Titanium.UI.createTableView({
data : [{
title : 'Row',
backgroundGradient : {
type : "linear",
startPoint : {
x : "0%",
y : "0%"
},
endPoint : {
x : "0%",
y : "100%"
},
colors : [{
color : "#F9F9F9",
offset : 0.0
}, {
color : "#EEE",
offset : 1.0
}]
}
}]
});
win.add(tableview);
win.open();
Pull pending https://github.com/appcelerator/titanium_mobile/pull/3661
CR &FR on the PR
Backport PR https://github.com/appcelerator/titanium_mobile/pull/3671
Verified with following environment: Titanium SDK: 3.1.0.v20130108153753 Titanium SDK:3.0.1.v20130108154840 Titanium Studio:3.0.1.201212181159 Device: Simulator iOS 6.0