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:33 UTC

[royale-asjs] branch develop updated (0520de2 -> 473dfbb)

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

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


    from 0520de2  tour-de-jewel: show scrollToIndex working
     new 267f686  fixes for Spark List.  Should fix #760
     new 473dfbb  fixes for Spark List.  Should fix #760

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../controls/listClasses/VirtualDataItemRendererFactoryForIListData.as | 2 ++
 .../SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as | 3 ++-
 .../src/main/royale/spark/components/supportClasses/ListBase.as        | 2 ++
 3 files changed, 6 insertions(+), 1 deletion(-)


[royale-asjs] 01/02: fixes for Spark List. Should fix #760

Posted by ah...@apache.org.
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 267f686b7b9d2622e4b07ff35809a58d7b671658
Author: Alex Harui <ah...@apache.org>
AuthorDate: Tue Apr 14 22:15:43 2020 -0700

    fixes for Spark List.  Should fix #760
---
 .../controls/listClasses/VirtualDataItemRendererFactoryForIListData.as  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/VirtualDataItemRendererFactoryForIListData.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/VirtualDataItemRendererFactoryForIListData.as
index 9450571..0bec19d 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/VirtualDataItemRendererFactoryForIListData.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/VirtualDataItemRendererFactoryForIListData.as
@@ -120,6 +120,8 @@ package mx.controls.listClasses
             var dataGroup:IItemRendererOwnerView = view.dataGroup;
             
             dataGroup.removeAllItemRenderers();
+			IEventDispatcher(_strand).dispatchEvent(new Event("layoutNeeded"));
+			
         }
         
 


[royale-asjs] 02/02: fixes for Spark List. Should fix #760

Posted by ah...@apache.org.
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();
     }
     
     //--------------------------------------------------------------------------