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

setting both explicitWidth and explicitHeight to NaN on a button doesn't cause a measure to happen so layoutBounds are incorrect

    XMLWordPrintableJSON

Details

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

    Description

      Steps to reproduce:
      1. compile and run the following :
      <?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/halo" minWidth="1024" minHeight="768">

      <fx:Script>
      <![CDATA[
      protected function button1_clickHandler(event:MouseEvent):void

      { b.explicitWidth = NaN; b.explicitHeight = NaN; }

      ]]
      >
      </fx:Script>

      <s:Group>
      <s:Button click="button1_clickHandler(event)"/>
      </s:Group>

      <s:Group x="30" y="30">

      <s:Button id="b" width="200" height="200"/>

      <s:Rect left="0" right="0" top="0" bottom="0">
      <s:stroke>
      <s:SolidColorStroke color="0xFF0000"/>
      </s:stroke>
      </s:Rect>
      </s:Group>

      </s:Application>

      Actual Results:

      Expected Results:

      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: