You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/01/09 17:10:16 UTC

[03/22] git commit: [flex-asjs] [refs/heads/develop] - need to trigger layout at end of effects

need to trigger layout at end of effects


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/e6fb0659
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/e6fb0659
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/e6fb0659

Branch: refs/heads/develop
Commit: e6fb0659db882aa8780617b6cc35eed6783c53c8
Parents: 4644861
Author: Alex Harui <ah...@apache.org>
Authored: Tue Jan 6 21:34:50 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Jan 9 08:09:46 2015 -0800

----------------------------------------------------------------------
 examples/FlexJSStore/src/productsView/ProductCatalogPanel.mxml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e6fb0659/examples/FlexJSStore/src/productsView/ProductCatalogPanel.mxml
----------------------------------------------------------------------
diff --git a/examples/FlexJSStore/src/productsView/ProductCatalogPanel.mxml b/examples/FlexJSStore/src/productsView/ProductCatalogPanel.mxml
index 92e231a..e944e9b 100755
--- a/examples/FlexJSStore/src/productsView/ProductCatalogPanel.mxml
+++ b/examples/FlexJSStore/src/productsView/ProductCatalogPanel.mxml
@@ -120,12 +120,13 @@ limitations under the License.
             if (lastMove)
             {
                 lastMove.addEventListener(Tween.TWEEN_UPDATE, updateLayout);
+                lastMove.addEventListener(Tween.TWEEN_END, updateLayout);
             }
         }
         
         private function updateLayout(event:org.apache.flex.events.Event):void
         {
-            thumbContent.dispatchEvent(new org.apache.flex.events.Event("layoutNeeded"));   
+            thumbContentGroup.dispatchEvent(new org.apache.flex.events.Event("layoutNeeded"));   
         }
             
         private function thumbDragStartHandler(event:MouseEvent):void
@@ -307,7 +308,7 @@ limitations under the License.
 						fadeInThumbnails();
 					});
             }
-            thumbContent.dispatchEvent(new org.apache.flex.events.Event("layoutNeeded"));
+            thumbContentGroup.dispatchEvent(new org.apache.flex.events.Event("layoutNeeded"));
             //return the last move to watch
             return move;
         }