Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23436

iOS: ListView Control's height not setting correctly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 5.2.2
    • Fix Version/s: Release 6.2.0
    • Component/s: iOS
    • Labels:
    • Environment:

      Description

      <Alloy>
      	<Window>
      		<ListView id="listView" defaultItemTemplate="videoTemplate" separatorHeight="4">
      			<Templates>
      				<ItemTemplate name="videoTemplate">
      					<View id="itemContainer" bindId="containerMain" height="600" width="900">
      						<ImageView id="imgVideo" bindId="imgVideo" height="600" width="900" ></ImageView>
      					</View>
      				</ItemTemplate>
      			</Templates>
      			<ListSection>
      				<HeaderView>
      					<View backgroundColor="green" height="Ti.UI.SIZE">
      						<Label id="lblHeader" left="10" top="3" bottom="3">Testing</Label>
      					</View>
      				</HeaderView>
      				<FooterView>
      					<View backgroundColor="green" height="6"></View>
      				</FooterView>
      			</ListSection>
      		</ListView>
      	</Window>
      </Alloy>
      

      var loadData = function(e) {
      			var listItems = [];
      				for (var i = 0; i < 100; i++) {
      					listItems.push({					
      						imgVideo : {image :  "/images/Default.png"}
      						
      					});
      				}
      				$.listView.sections[0].appendItems(listItems);
       
      };
       
      loadData();
      $.index.open();
      

      I am creating listing in listview and its working fine in android as expected.

      When I run iOS, it shows misbehaviour in rendering listview. it shows only one view bigger as same as given height and others are renders smaller with equal height.

      when I scroll down it maximise view once to given height one by one which is scrolling currently.

      It should be remain same when It maximised but when I scroll in reverse direction then it shows all scrolled control with same size again.

      when I click at any row then it expand to given height but after scroll out of the screen it fixed to default height.

      I used inbuilt image.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vijaysingh Vijay Singh
                Reporter:
                chhatbargaurang Gaurang Chhatbar
                Reviewer:
                Hans Knöchel
                Tester:
                Samir Mohammed
              • Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-9773
                    Sync status:
                    ERROR
                    Last sent:

                    Git Source Code