royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlosrov...@apache.org
Subject [royale-asjs] branch feature/new_merge updated: Basic Application wants to dispatchEvent sizeChanged, but doesn't create the Event object. This seems not right. Others should take a look to confirm a bad formed instruction
Date Tue, 04 Sep 2018 15:57:37 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/feature/new_merge by this push:
     new f1f83b6  Basic Application wants to dispatchEvent sizeChanged, but doesn't create
the Event object. This seems not right. Others should take a look to confirm a bad formed
instruction
f1f83b6 is described below

commit f1f83b636682b78234d144346037a8d54cc3a3d1
Author: Carlos Rovira <carlosrovira@apache.org>
AuthorDate: Tue Sep 4 17:57:32 2018 +0200

    Basic Application wants to dispatchEvent sizeChanged, but doesn't create the Event object.
This seems not right. Others should take a look to confirm a bad formed instruction
---
 .../Basic/src/main/royale/org/apache/royale/core/Application.as         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/Application.as
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/Application.as
index d50d6e7..6304126 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/Application.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/Application.as
@@ -693,7 +693,7 @@ package org.apache.royale.core
 				if (!isNaN(baseView.percentWidth) || !isNaN(baseView.percentHeight)) {
 					this.element.style.height = window.innerHeight.toString() + 'px';
 					this.element.style.width = window.innerWidth.toString() + 'px';
-					this.initialView.dispatchEvent('sizeChanged'); // kick off layout if % sizes
+					this.initialView.dispatchEvent(new Event("sizeChanged")); // kick off layout if % sizes
 				}
 				
 				dispatchEvent(new org.apache.royale.events.Event("viewChanged"));


Mime
View raw message