[TIMOB-13307] Mobile Web: Ti.UI.Animation.zIndex throws exception
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-05-01T22:37:24.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | linvalid |
Reporter | Roman Kamenetsky |
Assignee | Chris Barber |
Created | 2013-01-30T13:26:06.000+0000 |
Updated | 2018-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
File | Date | Size |
---|---|---|
AnimationZIndexSample.zip | 2013-01-30T13:26:06.000+0000 | 4933689 |
Resolving ticket as "Won't Fix" as MobileWeb is no longer supported.
Closing as will not fix.