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/develop
Commit: e981c3d3119f6240504ee4c1ddb25d6c8f7a2dc9
Parents: 8377006
Author: Alex Harui <[email protected]>
Authored: Fri Apr 28 00:00:52 2017 -0700
Committer: Alex Harui <[email protected]>
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;
                                        }

Reply via email to