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

TiAPI: TableView - e.rowData returns different results on each platform

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: Release 3.2.3
    • Fix Version/s: Release 6.2.0
    • Component/s: Android, iOS, TiAPI
    • Labels:
    • Environment:

      Appc Studio: 3.2.3.201403271839
      Sdk:3.2.3.v20140401134117
      alloy:1.3.1
      titanium:3.2.3-alpha2
      titanium-code-processor:1.1.1-alpha
      Osx: Maverick(10.9.2)
      Device:iPhone 5C(7.1),Nexus7(v4.3)

    • Story Points:
      1
    • Sprint:
      2016 Sprint 22 SDK, 2017 Sprint 02 SDK

      Description

      Not a regression since issue occurs on 3.2.2.GA,3.2.1.GA and 3.2.0.GA also.
      e.rowData returns different data on different platform

      Steps to reproduce:
      1.copy paste the code given below in app.js
      2.Launch the app and click on Row.

      var win = Ti.UI.createWindow({
         });
        var data=[];
         var table = Ti.UI.createTableView({
              top:0,
              height: "66%"
         }); 
         var row = Ti.UI.createTableViewRow({
              width: Ti.UI.FILL,
              backgroundColor:"red",
              height: 64
         });  
      data.push(row);
      table.addEventListener("click", function (e) { 
          Ti.API.warn("clicked: " + JSON.stringify(e.rowData));
      });
      table.data = data; 
      win.add(table);
      win.open();
      

      Expected Result:
      Both platform must show the same result.

      Actual Result:
      Both the platform gives different result.

      On Android getting the output as:

      [WARN] :   clicked: {"enabled":true,"height":64,"visible":true,"backgroundColor":"red","backgroundRepeat":false,"width":"fill"}
      

      On iOS getting the output as:

      [WARN]:clicked{"width":"FILL","backgroundColor":"red","horizontalWrap":true,"height":64}
      

        Attachments

          Activity

            People

            • Assignee:
              hknoechel Hans Knöchel
              Reporter:
              pagarwal Priya Agarwal
              Reviewer:
              Lokesh Choudhary
              Tester:
              Abir Mukherjee
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code