{ "id": "108855", "key": "TIMOB-13307", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-05-01T22:37:24.000+0000", "created": "2013-01-30T13:26:06.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "linvalid" ], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-04-04T23:20:28.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "*Bug description:* Ti.UI.Animation.zIndex doesn't work. It throws an exception.\r\n\r\n*Reproduction steps:*\r\n\r\n Create parent view with zIndex = 1000\r\n Create label with zIndex 2000\r\n Create Animation object\r\n Set Animation zIndex to 100 and delay to 3 seconds\r\n Call animate on label\r\n\r\n*Expected behavior:* Label should become red after 3 seconds.\r\n\r\n*Actual behavior:* It throws exception: \"Uncaught ReferenceError: zIndex is not defined\".\r\n\r\n*Note:* Test project is in attachment.\r\n\r\n*Code example:*\r\n{code}\r\n var self = Ti.UI.createView({\r\n zIndex: 1000\r\n });\r\n \r\n // Create a Label.\r\n var label = Ti.UI.createLabel({\r\n text : 'label',\r\n color : 'green',\r\n textAlign : 'center',\r\n zIndex: 2000\r\n });\r\n \r\n // Add to the parent view.\r\n self.add(label);\r\n \r\n var animation = Ti.UI.createAnimation();\r\n animation.zIndex = 100;\r\n animation.delay = 3000;\r\n\r\n \r\n self.addEventListener('postlayout', function(e) {\r\n console.log('postlayout');\r\n label.animate(animation);\r\n });\r\n{code};", "attachment": [ { "id": "35190", "filename": "AnimationZIndexSample.zip", "author": { "name": "roman.kamenetsky", "key": "roman.kamenetsky", "displayName": "Roman Kamenetsky", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-30T13:26:06.000+0000", "size": 4933689, "mimeType": "application/zip" } ], "flagged": false, "summary": "Mobile Web: Ti.UI.Animation.zIndex throws exception", "creator": { "name": "roman.kamenetsky", "key": "roman.kamenetsky", "displayName": "Roman Kamenetsky", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "roman.kamenetsky", "key": "roman.kamenetsky", "displayName": "Roman Kamenetsky", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "CLI version 3.0.22, Titanium SDK version 3.1.0", "comment": { "comments": [ { "id": "418513", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving ticket as \"Won't Fix\" as MobileWeb is no longer supported.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-01T22:37:24.000+0000", "updated": "2017-05-01T22:37:24.000+0000" }, { "id": "436382", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as will not fix.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-04T23:20:28.000+0000", "updated": "2018-04-04T23:20:28.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }