[TIMOB-141] add support for image repaint when an image is loaded dynamically in a view
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:52:07.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 0.7.0 |
Components | iOS |
Labels | layout, view |
Reporter | Jeff Haynie |
Assignee | Blain Hamon |
Created | 2011-04-15T02:24:16.000+0000 |
Updated | 2011-04-17T01:52:07.000+0000 |
Description
here is snippet of code that should support dynamic image reloading invoking new repaint API.
@@@javascript
var handler = function(e)
{
if (e.srcElement.tagName == "IMG")
{
Titanium.UI.currentWindow.repaint();
return;
}
};
document.body.addEventListener('load', handler, true);
@@@@
Done and done