Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 78F2F1074A for ; Tue, 7 Jan 2014 17:20:08 +0000 (UTC) Received: (qmail 51036 invoked by uid 500); 7 Jan 2014 17:19:59 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 51025 invoked by uid 500); 7 Jan 2014 17:19:54 -0000 Mailing-List: contact issues-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 issues@flex.apache.org Received: (qmail 50911 invoked by uid 99); 7 Jan 2014 17:19:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jan 2014 17:19:51 +0000 Date: Tue, 7 Jan 2014 17:19:51 +0000 (UTC) From: "Alex Harui (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Reopened] (FLEX-23915) LabelWidth not updating properly in Forms MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-23915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alex Harui reopened FLEX-23915: ------------------------------- Assignee: Alex Harui (was: Adobe JIRA) > LabelWidth not updating properly in Forms > ----------------------------------------- > > Key: FLEX-23915 > URL: https://issues.apache.org/jira/browse/FLEX-23915 > Project: Apache Flex > Issue Type: Bug > Components: mx: Form View > Affects Versions: Adobe Flex SDK 4.0 (Release) > Environment: Affected OS(s): All OS Platforms > Affected OS(s): All OS Platforms > Language Found: English > Reporter: Adobe JIRA > Assignee: Alex Harui > Priority: Trivial > > Steps to reproduce: > In an mx:Form which contains several FormItems whose visibility depends on some logic, when hidden FormItems are displayed the width of the LabelWidth of the Form is not invalidated / recalculated thus truncating the text of the new label (if it's larger than the previously calculated). > Execute the app below: > > layout="vertical" minWidth="955" minHeight="600" > xmlns:mx="http://www.adobe.com/2006/mxml" > xmlns:local="*" > xmlns:containers="mx.containers.*"> > width="300"> > width="100%" > label="My label"> > > > width="100%" > label="My label long" includeInLayout="{v.selected}" > visible="{v.selected}"> > > > > > > Actual Results: > When selecting / unselecting the checkbox, the second FormItem appears but the text is truncated. > > Expected Results > The label should be resized. > > Workaround (if any): > There at least a couple of workarounds: > 1. Invoke form.styleChanged(null). This will cause invalidateLabelWidth to be invoked > 2. Create a subclass of mx:Form in the mx.containers package. Create a public method on it to proxy calls to invalidateLabelWidth. Invoke the public method when needed -- This message was sent by Atlassian JIRA (v6.1.5#6160)