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

Windows: setting a headerView/footerView for a listview without a height set on the view makes the view oversized

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 5.4.0
    • Fix Version/s: Release 6.0.0
    • Component/s: Windows
    • Labels:
    • Environment:

      Windows 10
      Appc CLI Core: 5.4.0-35
      Appc CLI NPM: 4.2.7
      Ti SDK: 5.4.0.v20160725003348

    • Story Points:
      5
    • Sprint:
      2016 Sprint 16 SDK

      Description

      Description

      When adding a headerView or footerView to a listView, if the views do not have a height set then the headerView or footerView

      var win = Ti.UI.createWindow({backgroundColor:'green'});
       
      var listView = Ti.UI.createListView();
       
      var header = Ti.UI.createView({backgroundColor: "blue"});
      var lbl = Ti.UI.createLabel({text:"Valid"});
      header.add(lbl);
       
      var footer = Ti.UI.createView({backgroundColor: "blue"});
      var lbl2 = Ti.UI.createLabel({text:"Invalid"});
      footer.add(lbl2);
       
      var section = Ti.UI.createListSection({id:"Valid", headerView:header, footerView: footer});
      var data = [
      	{properties: { title: 'Test text'}},
      ];
      section.setItems(data);
       
      listView.setSections([section]);
      win.add(listView);
      win.open();
      

      Steps to reproduce
      1. Using the code above build for Windows platform
      Actual result

      The headerView and footerView will be bigger than they should be

      Expected

      The headerView and footerView should be appropriately sized for the UI elements inside, as is the behaviour on iOS and Android

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                eharris Ewan Harris
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code