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

Mobile Web: Ti.UI.Animation.zIndex throws exception

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: MobileWeb
    • Labels:
    • Environment:

      CLI version 3.0.22, Titanium SDK version 3.1.0

      Description

      Bug description: Ti.UI.Animation.zIndex doesn't work. It throws an exception.

      Reproduction steps:

      Create parent view with zIndex = 1000
      Create label with zIndex 2000
      Create Animation object
      Set Animation zIndex to 100 and delay to 3 seconds
      Call animate on label

      Expected behavior: Label should become red after 3 seconds.

      Actual behavior: It throws exception: "Uncaught ReferenceError: zIndex is not defined".

      Note: Test project is in attachment.

      Code example:

          var self = Ti.UI.createView({
              zIndex: 1000
          });
         
          // Create a Label.
          var label = Ti.UI.createLabel({
              text : 'label',
              color : 'green',
              textAlign : 'center',
              zIndex: 2000
          });
         
          // Add to the parent view.
          self.add(label);
         
          var animation = Ti.UI.createAnimation();
          animation.zIndex = 100;
          animation.delay = 3000;
       
         
          self.addEventListener('postlayout',  function(e) {
              console.log('postlayout');
              label.animate(animation);
          });
      

      ;

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              roman.kamenetsky Roman Kamenetsky
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration