[TIMOB-1843] ipad grouped tableview does not allow window background image
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2011-04-15T03:03:45.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Backlog |
Components | iOS |
Labels | background, ios, ipad, tableview |
Reporter | ctredway |
Assignee | Blain Hamon |
Created | 2011-04-15T03:03:44.000+0000 |
Updated | 2017-03-03T06:04:06.000+0000 |
Description
on 1.4.1 with iOS sdk 3.2 when a grouped table is used the underlying window's background image is not shown or is barely shown.
var win = Ti.UI.currentWindow;
var data = [];
for (var c=0;c<4;c++)
{
data[c] = Ti.UI.createTableViewSection({headerTitle:'Group '+(c+1)});
for (var x=0;x<10;x++)
{
data[c].add(Ti.UI.createTableViewRow({title:'Group '+(c+1)+', Row '+(x+1),backgroundColor:'#FF0000'}));
}
}
// create table view var tableview =
Titanium.UI.createTableView({
data:data,
style: Titanium.UI.iPhone.TableViewStyle.GROUPED,
backgroundColor:'transparent'
});
// create table view event listener
tableview.addEventListener('click', function(e)
{
// event data
var index = e.index;
var section = e.section;
var row = e.row;
var rowdata = e.rowData;
if (section.headerTitle.indexOf('clicked')==-1)
{
section.headerTitle = section.headerTitle + ' (clicked)';
}
Titanium.UI.createAlertDialog({title:'Table View',message:'row ' + row + ' index ' + index + ' section ' + section + ' row data ' + rowdata}).show();
});
// add table view to the window Titanium.UI.currentWindow.add(tableview);
Comments
- Adriano Paladini 2011-04-15
- Marko Perutovic 2011-04-15
This is still an issue and it's boring to make double table layout for ipad and iphone
- Adriano Paladini 2011-04-15
- Stephen Tramer 2011-04-15
Dupe #1738 as per above.
- Lee Morris 2017-03-03 Closing issue due to time passed and irrelevance of the ticket.