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 2017/04/21 16:35:58 UTC

[34/43] git commit: [flex-asjs] [refs/heads/dual] - DataGrid was supposed to extend GroupBase, not Group.

DataGrid was supposed to extend GroupBase, not Group.


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

Branch: refs/heads/dual
Commit: 6fca71522e14026ba757bb90f05cc3507cb4c06e
Parents: 313e900
Author: Peter Ent <pe...@apache.org>
Authored: Mon Apr 17 14:50:27 2017 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Mon Apr 17 14:50:27 2017 -0400

----------------------------------------------------------------------
 .../main/flex/org/apache/flex/html/DataGrid.as  | 24 +++++---------------
 1 file changed, 6 insertions(+), 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6fca7152/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/DataGrid.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/DataGrid.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/DataGrid.as
index fda1b46..5a17c4a 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/DataGrid.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/DataGrid.as
@@ -22,8 +22,10 @@ package org.apache.flex.html
 	import org.apache.flex.core.IDataGridModel;
 	import org.apache.flex.core.IDataGridPresentationModel;
 	import org.apache.flex.core.UIBase;
+	import org.apache.flex.core.GroupBase;
 	import org.apache.flex.core.ValuesManager;
 	import org.apache.flex.html.beads.models.DataGridPresentationModel;
+	import org.apache.flex.events.Event;
 	
 	[Event(name="change", type="org.apache.flex.events.Event")]
 	
@@ -41,7 +43,7 @@ package org.apache.flex.html
 	 *  @playerversion AIR 2.6
 	 *  @productversion FlexJS 0.0
 	 */
-	public class DataGrid extends Group
+	public class DataGrid extends GroupBase
 	{
 		/**
 		 *  constructor.
@@ -160,24 +162,10 @@ package org.apache.flex.html
 			presentationModel.rowHeight = value;
 		}
 		
-		/**
-		 * @private
-		 * The DataGrid needs to know whenever its size is being changed so the columns can be
-		 * be aligned properly, so the noEvent value must always be false.
-		 */
-		override public function setWidth(value:Number, noEvent:Boolean=false):void
-		{
-			super.setWidth(value,false);
-		}
-		
-		/**
-		 * @private
-		 * The DataGrid needs to know whenever its size is being changed so the columns can be
-		 * be aligned properly, so the noEvent value must always be false.
-		 */
-		override public function setHeight(value:Number, noEvent:Boolean=false):void
+		override public function addedToParent():void
 		{
-			super.setHeight(value,false);
+			super.addedToParent();
+			dispatchEvent(new Event("initComplete"));
 		}
 	}
 }