flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bigosma...@apache.org
Subject git commit: [flex-sdk] [refs/heads/release4.14.1] - Fix for https://issues.apache.org/jira/browse/FLEX-34772 Add 'padding' property
Date Tue, 17 Mar 2015 23:39:33 GMT
Repository: flex-sdk
Updated Branches:
  refs/heads/release4.14.1 740b8a990 -> 94437f9d3


Fix for https://issues.apache.org/jira/browse/FLEX-34772
Add 'padding' property

Signed-off-by: OmPrakash Muppirala <bigosmallm@gmail.com>


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

Branch: refs/heads/release4.14.1
Commit: 94437f9d3bdce9e309820e39f9fa20518751b5f3
Parents: 740b8a9
Author: Dany Dhondt <archemedia@mac.com>
Authored: Tue Mar 17 16:38:03 2015 -0700
Committer: OmPrakash Muppirala <bigosmallm@gmail.com>
Committed: Tue Mar 17 16:38:03 2015 -0700

----------------------------------------------------------------------
 .../spark/src/spark/components/HGroup.as        | 30 ++++++++++++++
 .../spark/src/spark/components/TileGroup.as     | 30 ++++++++++++++
 .../spark/src/spark/components/VGroup.as        | 30 ++++++++++++++
 .../spark/src/spark/layouts/HorizontalLayout.as | 43 ++++++++++++++++++++
 .../spark/src/spark/layouts/TileLayout.as       | 43 ++++++++++++++++++++
 .../spark/src/spark/layouts/VerticalLayout.as   | 43 ++++++++++++++++++++
 6 files changed, 219 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/94437f9d/frameworks/projects/spark/src/spark/components/HGroup.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/components/HGroup.as b/frameworks/projects/spark/src/spark/components/HGroup.as
index 942d60a..cc1ca2c 100644
--- a/frameworks/projects/spark/src/spark/components/HGroup.as
+++ b/frameworks/projects/spark/src/spark/components/HGroup.as
@@ -53,6 +53,7 @@ import spark.layouts.supportClasses.LayoutBase;
  *    columnWidth="no default"
  *    gap="6"
  *    horizontalAlign="left"
+ *    padding="0"
  *    paddingBottom="0"
  *    paddingLeft="0"
  *    paddingRight="0"
@@ -157,6 +158,35 @@ public class HGroup extends Group
     {
         return horizontalLayout.columnCount;
     }
+	
+	//----------------------------------
+	//  padding
+	//----------------------------------
+	
+	[Inspectable(category="General", defaultValue="0.0")]
+	
+	/**
+	 *  @copy spark.layouts.HorizontalLayout#padding
+	 *  
+	 *  @default 0
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
+	 */
+	public function get padding():Number
+	{
+		return horizontalLayout.padding;
+	}
+	
+	/**
+	 *  @private
+	 */
+	public function set padding(value:Number):void
+	{
+		horizontalLayout.padding = value;
+	}
     
     //----------------------------------
     //  paddingLeft

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/94437f9d/frameworks/projects/spark/src/spark/components/TileGroup.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/components/TileGroup.as b/frameworks/projects/spark/src/spark/components/TileGroup.as
index 360620a..349ff86 100644
--- a/frameworks/projects/spark/src/spark/components/TileGroup.as
+++ b/frameworks/projects/spark/src/spark/components/TileGroup.as
@@ -56,6 +56,7 @@ import spark.layouts.supportClasses.LayoutBase;
  *    horizontalAlign="justify"
  *    horizontalGap="6"
  *    orientation="rows"
+ *    padding="0"
  *    paddingBottom="0"
  *    paddingLeft="0"
  *    paddingRight="0"
@@ -281,6 +282,35 @@ public class TileGroup extends Group
     {
         tileLayout.orientation = value;
     }
+	
+	//----------------------------------
+	//  padding
+	//----------------------------------
+	
+	[Inspectable(category="General", defaultValue="0.0")]
+	
+	/**
+	 *  @copy spark.layouts.TileLayout#padding
+	 *  
+	 *  @default 0
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
+	 */
+	public function get padding():Number
+	{
+		return tileLayout.padding;
+	}
+	
+	/**
+	 *  @private
+	 */
+	public function set padding(value:Number):void
+	{
+		tileLayout.padding = value;
+	}
     
     //----------------------------------
     //  paddingLeft

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/94437f9d/frameworks/projects/spark/src/spark/components/VGroup.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/components/VGroup.as b/frameworks/projects/spark/src/spark/components/VGroup.as
index 43c75c7..befa540 100644
--- a/frameworks/projects/spark/src/spark/components/VGroup.as
+++ b/frameworks/projects/spark/src/spark/components/VGroup.as
@@ -52,6 +52,7 @@ import spark.layouts.supportClasses.LayoutBase;
  *    <strong>Properties</strong>
  *    gap="6"
  *    horizontalAlign="left"
+ *    padding="0"
  *    paddingBottom="0"
  *    paddingLeft="0"
  *    paddingRight="0"
@@ -193,6 +194,35 @@ public class VGroup extends Group
     {
         verticalLayout.verticalAlign = value;
     }
+	
+	//----------------------------------
+	//  padding
+	//----------------------------------
+	
+	[Inspectable(category="General", defaultValue="0.0")]
+	
+	/**
+	 *  @copy spark.layouts.VerticalLayout#padding
+	 *  
+	 *  @default 0
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
+	 */
+	public function get padding():Number
+	{
+		return verticalLayout.padding;
+	}
+	
+	/**
+	 *  @private
+	 */
+	public function set padding(value:Number):void
+	{
+		verticalLayout.padding = value;
+	} 
     
     //----------------------------------
     //  paddingLeft

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/94437f9d/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as b/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
index 5b20ddc..4234f0c 100644
--- a/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ b/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -105,6 +105,7 @@ use namespace mx_internal;
  *    <strong>Properties</strong>
  *    columnWidth="<i>calculated</i>"
  *    gap="6"
+ *    padding="0"
  *    paddingBottom="0"
  *    paddingLeft="0"
  *    paddingRight="0"
@@ -339,6 +340,48 @@ public class HorizontalLayout extends LayoutBase
         _columnCount = value;
         dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "columnCount", oldValue,
value));
     }
+	
+	//----------------------------------
+	//  padding
+	//----------------------------------
+	
+	private var _padding:Number = 0;
+	
+	[Inspectable(category="General")]
+	
+	/**
+	 *  The minimum number of pixels between the container's edges and
+	 *  the edges of the layout element.
+	 * 
+	 *  @default 0
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
+	 */
+	public function get padding():Number
+	{
+		return _padding;
+	}
+	
+	/**
+	 *  @private
+	 */
+	public function set padding(value:Number):void
+	{
+		if (_padding == value)
+			return;
+		
+		_padding = value;
+		
+		paddingBottom = _padding;
+		paddingLeft = _padding;
+		paddingRight = _padding;
+		paddingTop = _padding;
+		
+		invalidateTargetSizeAndDisplayList();
+	}    
         
     //----------------------------------
     //  paddingLeft

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/94437f9d/frameworks/projects/spark/src/spark/layouts/TileLayout.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/layouts/TileLayout.as b/frameworks/projects/spark/src/spark/layouts/TileLayout.as
index c0e552b..7bd9e1b 100644
--- a/frameworks/projects/spark/src/spark/layouts/TileLayout.as
+++ b/frameworks/projects/spark/src/spark/layouts/TileLayout.as
@@ -92,6 +92,7 @@ use namespace mx_internal;
  *    rowHeight="NaN"
  *    verticalAlign="justify"
  *    verticalGap="6"
+ *    padding="0"
  *  /&gt;
  *  </pre>
  *  
@@ -457,6 +458,48 @@ public class TileLayout extends LayoutBase
         _rowHeight = value;
         invalidateTargetSizeAndDisplayList();
     }
+	
+	//----------------------------------
+	//  padding
+	//----------------------------------
+	
+	private var _padding:Number = 0;
+	
+	[Inspectable(category="General")]
+	
+	/**
+	 *  The minimum number of pixels between the container's edges and
+	 *  the edges of the layout element.
+	 * 
+	 *  @default 0
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
+	 */
+	public function get padding():Number
+	{
+		return _padding;
+	}
+	
+	/**
+	 *  @private
+	 */
+	public function set padding(value:Number):void
+	{
+		if (_padding == value)
+			return;
+		
+		_padding = value;
+		
+		paddingBottom = _padding;
+		paddingLeft = _padding;
+		paddingRight = _padding;
+		paddingTop = _padding;
+		
+		invalidateTargetSizeAndDisplayList();
+	}    
     
     //----------------------------------
     //  paddingLeft

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/94437f9d/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as b/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
index 20f84ef..a808d12 100644
--- a/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
+++ b/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
@@ -104,6 +104,7 @@ use namespace mx_internal;
  *    <strong>Properties</strong>
  *    gap="6"
  *    horizontalAlign="left"
+ *    padding="0"
  *    paddingBottom="0"
  *    paddingLeft="0"
  *    paddingRight="0"
@@ -397,6 +398,48 @@ public class VerticalLayout extends LayoutBase
         if (layoutTarget)
             layoutTarget.invalidateDisplayList();
     }
+	
+	//----------------------------------
+	//  padding
+	//----------------------------------
+	
+	private var _padding:Number = 0;
+	
+	[Inspectable(category="General")]
+	
+	/**
+	 *  The minimum number of pixels between the container's edges and
+	 *  the edges of the layout element.
+	 * 
+	 *  @default 0
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
+	 */
+	public function get padding():Number
+	{
+		return _padding;
+	}
+	
+	/**
+	 *  @private
+	 */
+	public function set padding(value:Number):void
+	{
+		if (_padding == value)
+			return;
+		
+		_padding = value;
+		
+		paddingBottom = _padding;
+		paddingLeft = _padding;
+		paddingRight = _padding;
+		paddingTop = _padding;
+		
+		invalidateTargetSizeAndDisplayList();
+	}    
     
     //----------------------------------
     //  paddingLeft


Mime
View raw message