Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11335] iOS: Table view row selected background doesn't fade out when backgroundGradient is set

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-01-07T10:37:15.000+0000
Affected Version/sRelease 2.0.2, Release 2.1.2, Release 2.1.3, Release 3.0.0
Fix Version/sRelease 3.0.1, Release 3.1.0, 2013 Sprint 01 API, 2013 Sprint 01, Release 1.8.3
ComponentsiOS
Labelsapi, module_tableview, qe-review, qe-testadded, triage
ReporterDaniel Sefton
AssigneeVishal Duggal
Created2012-10-09T23:17:26.000+0000
Updated2013-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();

Comments

  1. Vishal Duggal 2013-01-04

    Pull pending https://github.com/appcelerator/titanium_mobile/pull/3661
  2. Sabil Rahim 2013-01-07

    CR &FR on the PR
  3. Vishal Duggal 2013-01-08

    Backport PR https://github.com/appcelerator/titanium_mobile/pull/3671
  4. Shyam Bhadauria 2013-01-09

    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

JSON Source