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

TextInput.widthInChars doesn't appear to work in mobile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • None
    • Mobile: Text
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a mobile Flex application with this View:

      <?xml version="1.0" encoding="utf-8"?>
      <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark">

      <s:layout>
      <s:VerticalLayout gap="20" />
      </s:layout>

      <s:TextInput widthInChars="5" />
      <s:TextInput widthInChars="15" />
      <s:TextInput widthInChars="25" />
      <s:TextInput widthInChars="50" />

      <s:TextInput widthInChars="5" skinClass="spark.skins.mobile.TextInputSkin" />
      <s:TextInput widthInChars="15" skinClass="spark.skins.mobile.TextInputSkin" />
      <s:TextInput widthInChars="25" skinClass="spark.skins.mobile.TextInputSkin" />
      <s:TextInput widthInChars="50" skinClass="spark.skins.mobile.TextInputSkin" />

      </s:View>

      2. Compare the widths of the TextInputs
      3.

      Actual Results:

      All of the TextInputs are the same width.
      All of the TextInputs have a large width.

      Expected Results:

      Each TextInput should be a different size and only be large enough to show x characters

      Workaround (if any):

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: