Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 06689200C53 for ; Tue, 11 Apr 2017 18:00:30 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 05273160BAC; Tue, 11 Apr 2017 16:00:30 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 04B50160BAF for ; Tue, 11 Apr 2017 18:00:28 +0200 (CEST) Received: (qmail 63966 invoked by uid 500); 11 Apr 2017 16:00:27 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 63435 invoked by uid 99); 11 Apr 2017 16:00:27 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Apr 2017 16:00:27 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 03909E962E; Tue, 11 Apr 2017 16:00:27 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: pent@apache.org To: commits@flex.apache.org Date: Tue, 11 Apr 2017 16:00:43 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [18/44] git commit: [flex-asjs] [refs/heads/develop] - OneFlexibleChildVerticalLayout was not setting the flexible child's width properly. archived-at: Tue, 11 Apr 2017 16:00:30 -0000 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 Authored: Mon Apr 3 09:37:39 2017 -0400 Committer: Peter Ent 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;