You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Devon Zara (JIRA)" <ji...@apache.org> on 2014/03/22 13:07:42 UTC

[jira] [Created] (FLEX-34182) TextInput padding ignored when text exceeds input width...

Devon Zara created FLEX-34182:
---------------------------------

             Summary: TextInput padding ignored when text exceeds input width...
                 Key: FLEX-34182
                 URL: https://issues.apache.org/jira/browse/FLEX-34182
             Project: Apache Flex
          Issue Type: Bug
          Components: Spark: TextInput
    Affects Versions: Apache Flex 4.12.0
            Reporter: Devon Zara


**Steps to reproduce:**
Create a project and add a Spark:TextInput with the following properties.
 <s:TextInput x="200" y="200" width="200" 
	paddingBottom="15" paddingLeft="15" paddingRight="15" paddingTop="15" 
	text="HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH"/>

Set focus to the TextInput and type a few additional characters. Observe how the left/right padding behaves, despite being set to 15.

**Actual Results:**
 Initially, the left padding works as intended. However, when the text is changed, and it exceeds the bounds of the TextInput's container, the left padding is then lost. Additionally, the right padding is ignored when the text exceeds the bounds of the TextInput's container.

**Expected Results:**
 The left/right padding should remain consistent with the components style attribute, regardless of whether or not the text exceeds the bounds of the container. If there is a 15px padding, there should always be 15px between the edge of the component and the text.

**Workaround (if any):**
 



--
This message was sent by Atlassian JIRA
(v6.2#6252)