Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12008] iOS: Window backgroundImage ignored in grouped TableView

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2012-12-11T18:14:01.000+0000
Affected Version/sRelease 2.1.4, Release 3.0.0
Fix Version/s2012 Sprint 25, 2012 Sprint 25 Core
ComponentsiOS
Labelsdefect, ios, iphone, regression, triage
ReporterPete Cornish
AssigneeMax Stepanov
Created2012-12-07T23:37:29.000+0000
Updated2013-03-13T15:00:57.000+0000

Description

Repro steps

Example code:
/**
 * Get table rows
 */
var getTableRows = function() {
	var rows = [];
	
	rows.push(Ti.UI.createTableViewRow({
		title : 'Item 1'
	}));
	rows.push(Ti.UI.createTableViewRow({
		title : 'Item 2'
	}));
	rows.push(Ti.UI.createTableViewRow({
		title : 'Item 3'
	}));
	
	return rows;
};

// construct window
var win = Ti.UI.createWindow({
	title : 'Test',
	backgroundImage : '/image.png'
});

// containing table
var table = Ti.UI.createTableView({
	style : Ti.UI.iPhone.TableViewStyle.GROUPED
});

// some data
table.data = getTableRows();
win.add(table);

// show the window
win.open();

Behaviour on 2.1.3 SDK

TableView is grouped and background image displayed. [^TableView SDK_213.png]

Behaviour on 2.1.4 SDK (broken)

TableView is grouped and background image ignored. Instead, the standard iOS pinstripe pattern is shown. [^TableView SDK_214.png]

Expected behaviour

As per 2.1.3 SDK.

Community thread

http://developer.appcelerator.com/question/144761/sdk-214-backgroundimage-not-working-in-grouped-table-views#251163

Attachments

FileDateSize
image.png2012-12-08T00:41:48.000+0000256098
TableViewBug.zip2012-12-08T00:55:33.000+00002406135
TableView SDK_213.png2012-12-07T23:56:04.000+000059948
TableView SDK_214.png2012-12-07T23:56:04.000+000046231

Comments

  1. Eduardo Gomez 2012-12-08

    @Pete Comish Can you please attach background "image.png" used and an actual runnable sample? Just need the _table.data = getTableRows();_ method that populates table data to replicate what you are seeing.
  2. Pete Cornish 2012-12-08

    Sure thing; here you go: [^image.png]
  3. Pete Cornish 2012-12-08

    Code in description updated with full example, including getTableRows method.
  4. Pete Cornish 2012-12-08

    Full project attached. Just switch the SDK in tiapp.xml between 2.1.3 and 2.1.4 to see the issue. Hope this helps.
  5. Eduardo Gomez 2012-12-08

    @Thanks Pete, it's been moved to TiMobile project to dig into it.
  6. Max Stepanov 2012-12-11

    Since background image is set on window, table background color should be set to 'transparent' -or- background image should be set on table
  7. Eric Merriman 2013-01-10

    Closing based on Max's comment.

JSON Source