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

Windows: TableView headerView does not size correctly when tableview has a smaller width

    Details

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

      Ti SDK: 6.1.1.v20170614134051
      Appc Core: 6.2.2
      Appc NPM: 4.2.9
      Lumia 550 10.0
      10.0 ws-local

    • Story Points:
      5
    • Sprint:
      2017 Sprint 17 SDK

      Description

      Description

      When a headerView has has a bigger width than the TableView it is added to, it does not seem to be sized correctly based off the behaviour of other platforms

      var _window = Ti.UI.createWindow();
      var headerView = Ti.UI.createView({
          height: 90,
          width: 300,
          borderColor: 'green',
          borderWidth: 5,
          backgroundColor: 'red'
      });
      var tableView = Ti.UI.createTableView({
          width: 250,
          data: [{title:'foo'}],
          headerView: headerView
      });
      _window.add(tableView);
       
      _window.open();
      
      

      Steps to reproduce
      1. Add the above to an existing app.js
      2. Build for a windows target
      Actual

      View overflows the tableview constraints

      Expected

      Based off other platforms, should stick to the width of the tableview

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code