[AC-1683] ListView: wrong calculating height on iOS if set it ti Ti.UI.SIZE and init list with setItems()
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2014-08-26T00:16:46.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | TCSupportTriage, layout, listview |
Reporter | Far |
Assignee | Mauro Parra-Miranda |
Created | 2014-07-31T23:47:37.000+0000 |
Updated | 2016-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.
It isn't duplicate to TC-4510 but look like already fixed.