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

iOS: Setting ListView height as Ti.UI.SIZE makes ListView disappear

    Details

    • Sprint:
      2014 Sprint 16 SDK

      Description

      Problem
      In my attempt to get rid of separators for non-full ListViews I tried using Ti.UI.SIZE for the height. This works on Android as far as I can tell, but on iOS the ListView disappears.

      Test case

      var win = Ti.UI.createWindow({
      	backgroundColor : 'white'
      });
      var listView = Ti.UI.createListView({
      	top : 0,
      	height : Ti.UI.SIZE //where is my listview??!?!?!?
      });
       
      var section = Ti.UI.createListSection({
      	headerTitle : 'ugly lines'
      });
      section.setItems([{
      	properties : {
      		title : 'Ugly lines on iOS'
      	}
      }]);
       
      listView.sections = [section];
       
      win.add(listView);
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                mokesmokes Mark Mokryn
                Reviewer:
                Sabil Rahim
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration