You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2020/04/15 05:16:35 UTC
[royale-asjs] 02/02: fixes for Spark List. Should fix #760
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 473dfbbf8657f196dfe7a5ba36e06057fc71b4f8
Author: Alex Harui <ah...@apache.org>
AuthorDate: Tue Apr 14 22:16:05 2020 -0700
fixes for Spark List. Should fix #760
---
.../SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as | 3 ++-
.../src/main/royale/spark/components/supportClasses/ListBase.as | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
index 6aa97e2..02da846 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
@@ -54,7 +54,7 @@ import org.apache.royale.core.ILayoutHost;
import org.apache.royale.core.IParent;
import org.apache.royale.core.ValuesManager;
import org.apache.royale.events.ValueEvent;
-import org.apache.royale.events.Event;
+import org.apache.royale.events.Event;
import org.apache.royale.events.IEventDispatcher;
import org.apache.royale.utils.MXMLDataInterpreter;
import org.apache.royale.utils.loadBeadFromValuesManager;
@@ -982,6 +982,7 @@ public class SkinnableContainer extends SkinnableContainerBase implements IConta
// Load the layout bead if it hasn't already been loaded.
loadBeadFromValuesManager(IBeadLayout, "iBeadLayout", this);
+ dispatchEvent(new Event("beadsAdded"));
dispatchEvent(new Event("initComplete"));
if ((isHeightSizedToContent() || !isNaN(explicitHeight)) &&
(isWidthSizedToContent() || !isNaN(explicitWidth)))
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
index 70f8e92..26df278 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
@@ -48,6 +48,7 @@ import mx.core.mx_internal;
import spark.components.DataGroup;
import spark.components.SkinnableContainer;
import spark.components.beads.SparkContainerView;
+import spark.layouts.VerticalLayout;
import org.apache.royale.core.IBeadLayout;
import org.apache.royale.core.ISelectionModel;
@@ -252,6 +253,7 @@ public class ListBase extends SkinnableContainer
public function ListBase()
{
super();
+ layout = new VerticalLayout();
}
//--------------------------------------------------------------------------