Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13307] Mobile Web: Ti.UI.Animation.zIndex throws exception

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionWon't Fix
Resolution Date2017-05-01T22:37:24.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
Labelslinvalid
ReporterRoman Kamenetsky
AssigneeChris Barber
Created2013-01-30T13:26:06.000+0000
Updated2018-04-04T23:20:28.000+0000

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

FileDateSize
AnimationZIndexSample.zip2013-01-30T13:26:06.000+00004933689

Comments

  1. Lee Morris 2017-05-01

    Resolving ticket as "Won't Fix" as MobileWeb is no longer supported.
  2. Eric Merriman 2018-04-04

    Closing as will not fix.

JSON Source