You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/07/03 00:24:59 UTC

[royale-asjs] branch develop updated: Core-ImageViewBase: dispatch a "loadComplete" event when image isloaded

This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 8a795f6  Core-ImageViewBase: dispatch a "loadComplete" event when image isloaded
8a795f6 is described below

commit 8a795f6ac1782c4eaf423dd13f8adc358e6d13af
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Fri Jul 3 02:24:46 2020 +0200

    Core-ImageViewBase: dispatch a "loadComplete" event when image isloaded
---
 .../Core/src/main/royale/org/apache/royale/core/ImageViewBase.as       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/ImageViewBase.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/ImageViewBase.as
index 8b7bc68..832a952 100644
--- a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/ImageViewBase.as
+++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/ImageViewBase.as
@@ -230,7 +230,8 @@ package org.apache.royale.core
         protected function loadHandler(event:Object):void
         {
             imageElement.removeEventListener('load', loadHandler);
-			sendStrandEvent(_strand,"layoutNeeded");
+			sendStrandEvent(_strand, "loadComplete");
+			sendStrandEvent(_strand, "layoutNeeded");
         }
         /**
          * @royaleignorecoercion HTMLElement