flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [41/50] [abbrv] git commit: [flex-asjs] [refs/heads/dual] - Assign a default size to charts.
Date Tue, 18 Apr 2017 06:18:05 GMT
Assign a default size to charts.


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

Branch: refs/heads/dual
Commit: ae5cb4e1752843050c447ef995d8d51031698c73
Parents: 9d0f0a7
Author: Peter Ent <pent@apache.org>
Authored: Wed Apr 12 15:38:17 2017 -0400
Committer: Peter Ent <pent@apache.org>
Committed: Wed Apr 12 15:38:17 2017 -0400

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/charts/core/ChartBase.as  | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ae5cb4e1/frameworks/projects/Charts/src/main/flex/org/apache/flex/charts/core/ChartBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Charts/src/main/flex/org/apache/flex/charts/core/ChartBase.as
b/frameworks/projects/Charts/src/main/flex/org/apache/flex/charts/core/ChartBase.as
index 0feffa9..dc4c21e 100644
--- a/frameworks/projects/Charts/src/main/flex/org/apache/flex/charts/core/ChartBase.as
+++ b/frameworks/projects/Charts/src/main/flex/org/apache/flex/charts/core/ChartBase.as
@@ -52,6 +52,15 @@ package org.apache.flex.charts.core
 		public function ChartBase()
 		{
 			super();
+			
+			COMPILE::SWF {
+				// give charts a default size to help their layouts
+				setWidthAndHeight(200, 200, true);
+			}
+			
+			COMPILE::JS {
+				element.style.position = "relative";
+			}
 		}
 		
 		private var _series:Array;


Mime
View raw message