Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16866] iOS Transparency in a backgroundGradient does not provide the expected results

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-06-13T22:26:05.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterBert Grantges
AssigneeEric Merriman
Created2014-04-18T15:45:35.000+0000
Updated2017-06-13T22:26:05.000+0000

Description

When trying to provide a backgroundGradient that goes from a single solid color to a transparent color the result is a cloudy gray rendering for the transparent color vs just straight transparency.
"#gradient":{
	backgroundGradient:{
		type:"linear",
		startPoint:{x:0,y:0},
		endPoint:{x:0, y:"100%"},
		colors:[
			{color: "#fff", offset: 0.3},
			{color: "transparent", offset: 1.0}
		]
	},
	height: 65,
	width: Ti.UI.FILL
}
In my case i have a white background for a TableSectionView and I want the TableViewRow to fade into the section as its scrolled up. Expectation is that since i am on a white background, i should only see white and the tableViewRow should slowly fade up on scroll Actual Results As noted in the screenshot, i get a gray rendering where the transparency starts.

Attachments

FileDateSize
Screen Shot 2014-04-18 at 10.45.06 AM.png2014-04-18T15:45:35.000+0000153856

Comments

  1. Lee Morris 2017-06-13

    I am unable to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170609091155 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source