Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1683] ListView: wrong calculating height on iOS if set it ti Ti.UI.SIZE and init list with setItems()

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2014-08-26T00:16:46.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
LabelsTCSupportTriage, layout, listview
ReporterFar
AssigneeMauro Parra-Miranda
Created2014-07-31T23:47:37.000+0000
Updated2016-03-08T07:38:10.000+0000

Description

<Alloy>
	<Window>
		<ListView height="Ti.UI.SIZE" onPostlayout="postlayout">
			<ListSection id="sec"/>
		</ListView>
	</Window>
</Alloy>
function postlayout(e) {
    Ti.API.info(e.source.size.height);
}

$.sec.setItems([{
    properties: {title: "Hello!"}
}]);

$.index.open();
As result we have normal displaying on Android and invisible ListView with height=0 on iOS. Maybe it is releated to TIMOB-16083 and TC-4510.

Comments

  1. Mauro Parra-Miranda 2014-08-26

  2. Far 2014-08-26

    It isn't duplicate to TC-4510 but look like already fixed.

JSON Source