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

ToggleSwitch renders incorrectly when selecting and setting visibility at runtime

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • Adobe Flex SDK Previous
    • Mobile: ToggleSwitch
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a view based application and copy the following code into the default 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" title="HomeView">
      <s:ToggleSwitch id="toggle" top="10" visible="false" includeInLayout="false"/>
      <s:Button top="70" label="On" click="

      {toggle.selected = true}

      "/>
      <s:Button top="150" label="Visible" click="

      {toggle.visible = true;toggle.includeInLayout = true}

      "/>
      </s:View>

      2. First click "On", then click "Visible".

      Actual Results:
      Attached screenshot. The ToggleSwitch is not rendering correctly.

      Expected Results:
      ToggleSwitch should render correctly.

      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: