1 Reply Latest reply on May 22, 2012 1:35 PM by digitalobsession

    Reparenting rendering issue

    digitalobsession

      Has anyone had issues with reparenting multiple flex components?

       

      Specifically, it appears that the rendering order is off (or random) and that items specified in an hgroup do not necessarily show up in the same order that they were written.

       

      <s:Hgroup>

        <fx:Reparent includeIn="state1" target="panel1"/>

        <fx:Reparent includeIn="state1" target="panel2"/>

      </s:Hgroup>

       

      For example, panel1 will not always appear before panel2. A validateNow does not solve the issue.

       

      Thanks!

        • 1. Re: Reparenting rendering issue
          digitalobsession Level 1

          So after reading what limited documentation there was, I realized that fx:Reparent is a compiler level component. Thus, these components may be rendered differently than what the user expects - it simply reassigns a parent to a component (and not necessarily in order). Consequently, the solution was to do the following, where each reparent had its own little home to go to:

           

          <s:Hgroup>

            <s:Hgroup>

              <fx:Reparent includeIn="state1" target="panel1"/>

            </s:Hgroup>

            <s:Hgroup>

              <fx:Reparent includeIn="state1" target="panel2"/>

            </s:Hgroup>

          </s:Hgroup>