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/28 07:03:14 UTC

[4/5] git commit: [flex-asjs] [refs/heads/dual] - in browser, looks like block stretches child blocks

in browser, looks like block stretches child blocks


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

Branch: refs/heads/dual
Commit: e981c3d3119f6240504ee4c1ddb25d6c8f7a2dc9
Parents: 8377006
Author: Alex Harui <ah...@apache.org>
Authored: Fri Apr 28 00:00:52 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 28 00:00:52 2017 -0700

----------------------------------------------------------------------
 .../flex/org/apache/flex/html/beads/layouts/VerticalLayout.as   | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e981c3d3/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/layouts/VerticalLayout.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/layouts/VerticalLayout.as b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/layouts/VerticalLayout.as
index 6357e9f..16c81a0 100644
--- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/layouts/VerticalLayout.as
+++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/layouts/VerticalLayout.as
@@ -126,6 +126,11 @@ package org.apache.flex.html.beads.layouts
 							childWidth = hostWidth * ilc.percentWidth/100.0;
 							ilc.setWidth(childWidth);
 						}
+						else if (ilc.isWidthSizedToContent() && !margins.auto)
+						{
+							childWidth = hostWidth;
+							ilc.setWidth(childWidth);
+						}
 						if (margins.auto)
 							childXpos = (hostWidth - childWidth) / 2;
 					}