[TIMOB-4795] iOS: Animate() in tableviewrow does not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2011-08-11T10:17:24.000+0000 |
Affected Version/s | Release 1.7.2 |
Fix Version/s | Sprint 2011-32, Release 1.8.0 |
Components | iOS |
Labels | animation, apidoc, tablerow |
Reporter | Anirudh Nagesh |
Assignee | Reggie Seagraves |
Created | 2011-07-26T14:31:45.000+0000 |
Updated | 2017-03-07T19:54:30.000+0000 |
Description
Run the code below in app.js. Tableviewrow.animate() does not work.
var win = Ti.UI.createWindow({});
var table = Ti.UI.createTableView({});
var row = Ti.UI.createTableViewRow({
width:250,
height:40
});
var label = Ti.UI.createLabel({
text:"TEST",
left:20
});
row.add(label);
row.animate(Ti.UI.createAnimation({
backgroundColor:"blue",
duration:1000
}));
table.setData([row]);
win.add(table);
win.open();
Animations on tablerow would be poorly-defined. What's worse, do we trigger the animation when the row is added? When the row becomes visible? What happens if the row is visible, but then scrolls off the screen, causing the view to go away and be unloaded from memory? This bug may be rejected as a result.
This is actually a documentation issue. TableViewRows are not necessarily views. As such, there should be no declaration of 'animate' for TableViewRows.
Animate is not nor will it be supported for TableViewRows. Documentation has been updated, pull request pending.
An excludes entry was added to the documentation to remove animate. This feature will not be supported.
Closing ticket as it will not fix.