Return-Path: X-Original-To: apmail-flex-commits-archive@www.apache.org Delivered-To: apmail-flex-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 34E2817456 for ; Tue, 13 Jan 2015 18:11:11 +0000 (UTC) Received: (qmail 57467 invoked by uid 500); 13 Jan 2015 18:11:10 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 57406 invoked by uid 500); 13 Jan 2015 18:11:10 -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 57058 invoked by uid 99); 13 Jan 2015 18:11:10 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jan 2015 18:11:10 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 4EE0D9AFAAA; Tue, 13 Jan 2015 18:11:10 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aharui@apache.org To: commits@flex.apache.org Date: Tue, 13 Jan 2015 18:11:22 -0000 Message-Id: In-Reply-To: <6b0b8f091b4e4e2e8134a5b4831b8489@git.apache.org> References: <6b0b8f091b4e4e2e8134a5b4831b8489@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [13/17] git commit: [flex-asjs] [refs/heads/develop] - resize properly in certain scenarios resize properly in certain scenarios Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/70d6ee2f Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/70d6ee2f Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/70d6ee2f Branch: refs/heads/develop Commit: 70d6ee2f970c56d586b32409d5e3e4750ec0db9b Parents: 1f3429a Author: Alex Harui Authored: Tue Jan 13 10:08:37 2015 -0800 Committer: Alex Harui Committed: Tue Jan 13 10:08:37 2015 -0800 ---------------------------------------------------------------------- .../src/org/apache/flex/html/beads/TextFieldViewBase.as | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/70d6ee2f/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/TextFieldViewBase.as ---------------------------------------------------------------------- diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/TextFieldViewBase.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/TextFieldViewBase.as index 839420b..2378b78 100644 --- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/TextFieldViewBase.as +++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/TextFieldViewBase.as @@ -104,7 +104,14 @@ package org.apache.flex.html.beads autoHeight = ilc.isHeightSizedToContent(); autoWidth = ilc.isWidthSizedToContent(); - + if (!autoWidth && !isNaN(ilc.explicitWidth)) + { + widthChangeHandler(null); + } + if (!autoHeight && !isNaN(ilc.explicitHeight)) + { + heightChangeHandler(null); + } } /**