You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2017/04/11 16:00:43 UTC

[18/44] git commit: [flex-asjs] [refs/heads/develop] - OneFlexibleChildVerticalLayout was not setting the flexible child's width properly.

OneFlexibleChildVerticalLayout was not setting the flexible child's width properly.


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

Branch: refs/heads/develop
Commit: 8ac451fc342813096def3a60c1c1441be69d448e
Parents: 3d92c1c
Author: Peter Ent <pe...@apache.org>
Authored: Mon Apr 3 09:37:39 2017 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Mon Apr 3 09:37:39 2017 -0400

----------------------------------------------------------------------
 .../flex/html/beads/layouts/OneFlexibleChildVerticalLayout.as      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8ac451fc/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/layouts/OneFlexibleChildVerticalLayout.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/layouts/OneFlexibleChildVerticalLayout.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/layouts/OneFlexibleChildVerticalLayout.as
index a183cad..fe4e920 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/layouts/OneFlexibleChildVerticalLayout.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/layouts/OneFlexibleChildVerticalLayout.as
@@ -293,7 +293,7 @@ package org.apache.flex.html.beads.layouts
 					childWidth = actualChild.width;
 					if (ilc != null && !isNaN(ilc.percentWidth)) {
 						childWidth = (hostWidth-borderMetrics.left-borderMetrics.right-paddingMetrics.left-paddingMetrics.right) * ilc.percentWidth/100.0;
-						ilc.width = childWidth;
+						ilc.setWidth(childWidth);
 					}
 				}
 				actualChild.x = hostWidth/2 - (childWidth + margins.left + margins.right)/2;