You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2014/10/27 07:23:16 UTC

[16/50] [abbrv] git commit: [flex-utilities] [refs/heads/master] - add a little padding and show welcome screen if no app link passed in

add a little padding and show welcome screen if no app link passed in


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

Branch: refs/heads/master
Commit: 7406400e2a0b73af58c96696c5bd9dd6b3a9f9fa
Parents: cba0f58
Author: Justin Mclean <jm...@apache.org>
Authored: Sat Oct 18 11:24:11 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Sat Oct 18 11:24:11 2014 +1100

----------------------------------------------------------------------
 TourDeFlex/TourDeFlex3/src/explorer.mxml | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/7406400e/TourDeFlex/TourDeFlex3/src/explorer.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/explorer.mxml b/TourDeFlex/TourDeFlex3/src/explorer.mxml
index b02c147..7e5bc3c 100755
--- a/TourDeFlex/TourDeFlex3/src/explorer.mxml
+++ b/TourDeFlex/TourDeFlex3/src/explorer.mxml
@@ -17,10 +17,11 @@
   -->
 
 <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:explorer="*"
-    width="100%" height="100%" pageTitle="{TITLE}"
-    initialize="init()" creationComplete="checkParameters()" layout="vertical">
+				pageTitle="{TITLE}" layout="vertical" width="100%" height="100%"
+				paddingBottom="2" paddingTop="2" paddingLeft="2" paddingRight="2"
+			    initialize="init()" creationComplete="checkParameters()">
 
-    <fx:Script>
+     <fx:Script>
         <![CDATA[
 		import mx.core.FlexGlobals;
 
@@ -70,7 +71,10 @@
 				var source:String = explorerTree..node.(hasOwnProperty("@app") && @app == application).@src;
 				loadApp(application, source);
 				openNode(application);
-			}			
+			}
+			else {
+				loadApp("Welcome", null);
+			}
 		}
 
         private function treeChanged(event:Event):void