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

Windows: Updating a tableView section with a headerView causes a layout issue

    Details

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

      OS: Microsoft Windows 10 Pro 10.0.14393
      Appc core: 6.0.0-69
      Appc NPM: 4.2.8-9
      Ti SDK: 6.0.0.v20161107075927

    • Story Points:
      5
    • Sprint:
      2017 Sprint 04 SDK, 2017 Sprint 22 SDK, 2017 Sprint 23 SDK

      Description

      Description

      When calling update on a tableviewsection to include a headerView a layout issue occurs

      var win = Ti.UI.createWindow({
      	backgroundColor: 'blue'
      });
       
      var header1 = Ti.UI.createView({backgroundColor: 'red '});
      var label = Ti.UI.createLabel({
          text: "That Section"
      });
      header1.add(label);
       
      var section_0 = Ti.UI.createTableViewSection({ headerView: header1 });
      section_0.add(Ti.UI.createTableViewRow({ title: 'Red' }));
       
       
      var header2 = Ti.UI.createView();
      var label2 = Ti.UI.createLabel({
          text: "This Section"
      });
      header2.add(label2);
      var section_2 = Ti.UI.createTableViewSection({ headerView: header2});
      section_2.add(Ti.UI.createTableViewRow({ title: 'Gray' }));;
       
      var tableView = Ti.UI.createTableView({
        data: [section_0]
      });
       
      win.addEventListener('click', function () {
      	tableView.updateSection(0, section_2);
      });
       
      win.add(tableView);
      win.open();
      

      Steps to reproduce
      1. Add the code above to an existing app.js
      2. Tap the tableviewrow
      Actual result

      The tableview is updated and headerView is now partially off screen

      Expected result

      No layout errors should occur

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                eharris Ewan Harris
                Reviewer:
                Gary Mathews
                Tester:
                Samir Mohammed
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code