[TIMOB-14997] iOS7: 'backgroundgradient' hides the text and subviews in the TableViewRow
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-09-03T20:44:17.000+0000 |
Affected Version/s | Release 3.1.1 |
Fix Version/s | 2013 Sprint 18, 2013 Sprint 18 API, Release 3.1.3, Release 3.2.0 |
Components | iOS |
Labels | backgroundGradient, ios7, tableviewrow |
Reporter | Meenakshi Pathak |
Assignee | Vishal Duggal |
Created | 2013-08-29T10:12:27.000+0000 |
Updated | 2013-09-13T23:27:44.000+0000 |
Description
In iOS7,
text
or subviews
within tableViewRow if we use the bacgroundgradient
property for a TableViewRow. It appears only the moment when we click on a row. Here is the test case:
var win = Ti.UI.createWindow({
backgroundColor : 'white'
});
var table = Ti.UI.createTableView({
objName : 'table'
});
var data = [];
for (var i = 0; i <= 20; i++) {
var row = Ti.UI.createTableViewRow({
className : 'row',
objName : 'row',
touchEnabled : true,
height : 100,
backgroundGradient : {
type : 'linear',
startPoint : {
x : '100%',
y : '0%'
},
endPoint : {
x : '100%',
y : '100%'
},
colors : [{
color : 'white',
offset : 0.0
}, {
color : '#ddd',
offset : 0.25
}, {
color : '#787878',
offset : 1.0
}],
},
title : 'test'
});
data.push(row);
}
table.data = data;
win.add(table);
win.open();
Note : Tested with iOS 6 and its working fine. Please find the attached images of the screenshots of iOS6 and iOS7.
Attachments
File | Date | Size |
---|---|---|
screenshot_ios6.1_xcode4.6.3.png | 2013-08-29T10:13:54.000+0000 | 152669 |
screenshot_ios7_xcode5-DP4.png | 2013-08-29T10:13:54.000+0000 | 74506 |
[~srahim], thoughts?
master PR - https://github.com/appcelerator/titanium_mobile/pull/4638
Backport to 3_1_X - https://github.com/appcelerator/titanium_mobile/pull/4639
Verified as fixed. Using environment: Device : iPod touch 1 5th Generation, iOS version: 7 SDK: 3.1.3.v20130908095038 CLI version : 3.1.2 OS : MAC OSX 10.8.4 Alloy : 1.2.2-beta Appcelerator Studio, build: 3.1.3.201309072408 XCode : 5