Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-141] add support for image repaint when an image is loaded dynamically in a view

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:52:07.000+0000
Affected Version/sn/a
Fix Version/sRelease 0.7.0
ComponentsiOS
Labelslayout, view
ReporterJeff Haynie
AssigneeBlain Hamon
Created2011-04-15T02:24:16.000+0000
Updated2011-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);

@@@@

Comments

  1. Blain Hamon 2011-04-15

    Done and done

JSON Source