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/18 06:18:05 UTC
[41/50] [abbrv] git commit: [flex-asjs] [refs/heads/dual] - Assign a
default size to charts.
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 <pe...@apache.org>
Authored: Wed Apr 12 15:38:17 2017 -0400
Committer: Peter Ent <pe...@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;