Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-34182

TextInput padding ignored when text exceeds input width...

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Apache Flex 4.12.0
    • None
    • Spark: TextInput
    • None

    Description

      *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):*

      Attachments

        Activity

          People

            Unassigned Unassigned
            Devon Devon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: