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

validateNow not validating children

    XMLWordPrintableJSON

Details

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

    Description

      Reproduction:
      1.Run this code:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*"
      backgroundColor="white" marginTop="3" height="300" width="500" usePreloader="false" >
      <mx:Script>
      public function test() {
      testcb.width=testcb.width+50;
      incont.validateNow();
      dump.text = incont.width.toString();
      }
      </mx:Script>

      <mx:HBox id="incont">
      <mx:ComboBox id="testcb" width="100"/>
      </mx:HBox>
      <mx:VBox id="outcont">
      <mx:Button id="testb" click="test();" />
      <mx:TextArea id="dump" />
      </mx:VBox>

      </mx:Application>

      Actual Results: listed width is always 50 pixels behind since validatieNow is not revalidating the hbox's children.

      Expected Results: it validates itself and children

      Workaround: use the draw event on the hbox: draw="dump.text = incont.width.toString();"

      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: