Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19835] iPad: Separator Insets Ignored on Left Side

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterDawson Toth
AssigneeUnknown
Created2015-11-01T23:03:56.000+0000
Updated2018-02-28T19:54:47.000+0000

Description

Problem

The separator insets for a list view, which work on iPhone, aren't working on iPads. They seem to have a minimum value for the left, and any value I set less than about 50 is ignored. Also, the insets for the empty rows after the defined rows show the opposite problem -- the inset is messed up on the right side. See the attached screenshots.

Expected Behavior

If I set the insets to 0, they should reach from edge to edge.

Reproduction

var win = Ti.UI.createWindow({
	backgroundColor: 'white'
});
win.add(Ti.UI.createListView({
	templates: {
		def: {
			childTemplates: [
				{
					type: 'Ti.UI.Label',
					bindId: 'info',
					properties: {
						left: '20dp', top: 0
					}
				}
			]
		}
	},
	defaultItemTemplate: 'def',
	sections: [
		Ti.UI.createListSection({
			headerTitle: 'Vegetables / Verduras',
			items: [
				{ info: { text: 'Carrot' }, es_info: { text: 'Zanahoria' }, pic: { image: 'carrot.png' } },
				{ info: { text: 'Potato' }, es_info: { text: 'Patata' }, pic: { image: 'potato.png' } }
			]
		})
	],
	separatorInsets: { left: 0, right: 0 }
}));
win.open();

Attachments

FileDateSize
iPad Separator Insets.png2015-11-01T23:02:20.000+000064341
iPhone Separator Insets.png2015-11-01T23:02:20.000+000029659

Comments

  1. Michael Woode 2015-11-18

    This problem/bug is also present for Ti.UI.TableView insets (on iPad only).
  2. Hans Knöchel 2015-11-30

    Hi [~dtoth], that looks very related to TIMOB-19777, can you verify that its fixed in 5.1.0.GA?
  3. Justin Toth 2015-12-04

    I can confirm that this is fixed in 5.1.0.GA.

JSON Source