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

[Android] In ListViews transform is sometimes forgotten

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Release 4.1.1
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      Titanium SDK 3.4.0.GA, Android 4.3 on Genymotion

      Description

      Trying to implement a reversed list (one that has its start at the bottom of the screen) for a messaging app using double rotation (see the reproducibility code) some rows do not get the transformation property.

      Looks like is the first one to be offscreen that shows this behavior.

      var win = Ti.UI.createWindow();
       
      var items = [];
       
      var i = 0, l = 20;
       
      for (; i < l; i++) {
        items.push({
          label: {
            text: 'hallo ' + i
          }
        });
      }
       
      var section = Ti.UI.createListSection({
        items: items
      });
       
      var reversedTemplate = {
        childTemplates: [
          {
            type: 'Ti.UI.Label',
            bindId: 'label',
            properties: {
              top: 10,
              right: 10,
              bottom: 10,
              left: 10,
              transform: Ti.UI.create2DMatrix({ rotate: 180 })
            }
          }
        ]
      };
       
      var list = Ti.UI.createListView({
        defaultItemTemplate: 'reversed',
        sections: [ section ],
        separatorInsets: { right: 20, left: 0 },
        templates: { reversed: reversedTemplate },
        transform: Ti.UI.create2DMatrix({ rotate: 180 })
      });
       
      win.add(list);
       
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              yuchi Pier Paolo Ramon
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Source Code