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 0FFFD11959 for ; Tue, 10 Jun 2014 17:41:02 +0000 (UTC) Received: (qmail 63003 invoked by uid 500); 10 Jun 2014 17:41:01 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 62965 invoked by uid 500); 10 Jun 2014 17:41:01 -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 62957 invoked by uid 99); 10 Jun 2014 17:41:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2014 17:41:01 +0000 Date: Tue, 10 Jun 2014 17:41:01 +0000 (UTC) From: "Sebastian Toro (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FLEX-34365) TextInput's displayAsPassword related errors 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-34365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebastian Toro updated FLEX-34365: ---------------------------------- Description: Run the following code on an Android mobile project: When the CheckBox's selected property changes, the TextInput's displayAsPassword property won't. If the CheckBox's selected property changes and then the TextInput is focused, then the displayAsPassword property changes. The following solves the property update problem but introduces a new one: When the displayAsPassword property is updated to false and then the TextInput is focused, the text blinking cursor will be positioned where the end of the text would be if the displayAsPassword was true. was: Run the following code on an Android mobile project: When the CheckBox's selected property changes, the TextInput's displayAsPassword property won't. If the CheckBox's selected property changes and then the TextInput is focused, then the displayAsPassword property changes. > TextInput's displayAsPassword related errors > -------------------------------------------- > > Key: FLEX-34365 > URL: https://issues.apache.org/jira/browse/FLEX-34365 > Project: Apache Flex > Issue Type: Bug > Components: Spark: TextInput > Affects Versions: Apache Flex 4.12.0 > Environment: Flash Builder 4.7's simulator, Android 4.2.2 (app with captive runtime) > Reporter: Sebastian Toro > Labels: displayAsPassword, mobileTextInput, password, textinput > Fix For: Adobe Flex SDK 4.6 (Release) > > > Run the following code on an Android mobile project: > > xmlns:s="library://ns.adobe.com/flex/spark" > title="DisplayAsPassword"> > > > > /** > * Shows or hides the characters in the password field. > */ > protected function togglePasswordDisplay(event:Event):void > { > appPassword.displayAsPassword = !event.target.selected; > } > > ]]> > > > restrict="-A-Za-z0-9._" displayAsPassword="true" > top="20" left="20" right="20"/> > change="togglePasswordDisplay(event)" > top="{appPassword.y + appPassword.height + 20}" horizontalCenter="0"/> > > > When the CheckBox's selected property changes, the TextInput's displayAsPassword property won't. If the CheckBox's selected property changes and then the TextInput is focused, then the displayAsPassword property changes. > The following solves the property update problem but introduces a new one: > > xmlns:s="library://ns.adobe.com/flex/spark" > title="DisplayAsPassword"> > > restrict="-A-Za-z0-9._" displayAsPassword="{!showPasswordButton.selected}" > top="20" left="0" right="0"/> > selected="false" > top="{appPassword.y + appPassword.height + 20}" horizontalCenter="0"/> > > > When the displayAsPassword property is updated to false and then the TextInput is focused, the text blinking cursor will be positioned where the end of the text would be if the displayAsPassword was true. -- This message was sent by Atlassian JIRA (v6.2#6252)