Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1170] ListView Scroll Problem

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionCannot Reproduce
Resolution Date2014-06-10T17:38:39.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsios, listview, scroll
Reporternicolomonili
AssigneeRitu Agrawal
Created2014-05-06T19:14:40.000+0000
Updated2016-03-08T07:37:32.000+0000

Description

When the ListView scroll , the separator space disappear TEST CODE , and VIDEO TEST attached
var plainTemplate = {
	childTemplates : [{
		type : 'Ti.UI.Label',
		bindId : 'posizione',
		properties : {
			left : 0,
			width : 300, //32
			height : 20,
			backgroundColor : "#42de0b",
			textAlign : "center",
			color : "white",
			font : {
				fontSize : 10
			}
		}
	}]
};

var tabella_serie_A = Ti.UI.createListView({
	width : 300,
	height : 310,
	bottom : 10,
	separatorColor : 'white',
	backgroundColor : 'transparent',
	separatorInsets : {
	        left : 0,
		right : 0
	},
	showVerticalScrollIndicator : false,
	templates : {
		'plain' : plainTemplate
	},
	defaultItemTemplate : 'plain'
});

var data = [];
for (var i = 1; i <= 20; i++) {
	data.push({

		posizione : {
			text : i
		},

		properties : {
			selectionStyle : Ti.UI.iPhone.ListViewCellSelectionStyle.NONE,
			height : 20
		}
	});
}

var intestazione_serie_A = Ti.UI.createListSection({
	//headerView : createheader(),
	items : data
});

tabella_serie_A.sections = [intestazione_serie_A];

Attachments

FileDateSize
listview.mov2014-05-06T19:14:40.000+00001912628
Screen Shot 2014-05-08 at 10.54.00 AM.png2014-05-08T18:10:16.000+000022207
Screen Shot 2014-05-08 at 10.54.20 AM.png2014-05-08T18:10:16.000+000022780
Screen Shot 2014-05-08 at 10.54.37 AM.png2014-05-08T18:10:16.000+000022463

Comments

  1. Ritu Agrawal 2014-05-08

    [~nicolomonili] Thanks for the test case and video. However, I ran your test case and was not able to reproduce the issue. I am attaching the screenshots as well. Please let us know if the issue persists.
  2. nicolomonili 2014-05-08

    the problem persisted every time. I solved by placing the label in a view
       var plainTemplate = {
       	childTemplates : [{
       		type : 'Ti.UI.View',
       		//bindId : 'posizione',
       		properties : {
       			left : 0,
       			width : 32,
       			height : 20,
       			backgroundColor : "#42de0b",
       			textAlign : "center",
       			color : "white",
       			font : {
       				fontSize : 10
       			}
       		},
       		childTemplates : [{
       			type : 'Ti.UI.Label',
       			bindId : 'posizione',
       			properties : {
       				left : 0,
       				width : 32,
       				height : 20,
       				textAlign : "center",
       				color : "white",
       				font : {
       					fontSize : 10
       				}
       			},
       		}]
       	}]
       };
       
  3. Ritu Agrawal 2014-05-09

    We have not been able to reproduce this issue with the provided test case. Your video clearly shows the issue but the test case here does not match the application in the video. Can you please provide a test case that can reproduce the exact same issue?
  4. Ritu Agrawal 2014-06-10

    Resolving the ticket as we have not heard back from the reporter. We will be happy to reopen once we get the test case.

JSON Source