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

Setting a contraint value as a String does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • Layout - General
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Run the following program

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx">
      <s:Button x="100" y="20" label="Reset" click="Checker.left = 0"/>
      <s:Button x="100" y="50" label="Number" click="Checker.left = 100"/>
      <s:Button x="100" y="80" label="String" click="Checker.left = '200'"/>
      <s:CheckBox x="0" y="120" label="CheckBox" id="Checker"/>
      </s:Application>

      2. Click the "Number" button. Note that CheckBox moves to x=100
      3. Click the "Reset" button. Note that CheckBox moves to x=0
      4. Click the "String" button. Note that CheckBox does not move.

      Actual Results:
      CheckBox does not move when setting left to a numerical value expressed as a String.

      Expected Results:
      CheckBox moves to left value, even when value is specified as a String.
      This worked in SDK 4.0.

      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: