Skip to main content
Known Participant
November 25, 2008
Question

Strange layout behavior in Gumbo

  • November 25, 2008
  • 4 replies
  • 671 views
Hi,

I'm getting a strange layout behavior in Gumbo. This seems to be a regression as I was not having the problem with the code of November 12th. Only after updating on November 21th, the problem arised. Here's a sample application:


------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>

<FxApplication xmlns=" http://ns.adobe.com/mxml/2009">
    <layout>

        <VerticalLayout />
    </layout>

   
    <VGroup>

        <FxButton label="1" click="{t1.text='1'}" />
        <TextGraphic id="t1" text="0" />

        <FxButton label="2" click="{t1.text='2'}" />
    </VGroup>

   
    <HGroup>

        <HGroup>
            <FxButton label="1" click="{t2.text='1'}" />

            <TextGraphic id="t2" text="0" />
            <FxButton label="2" click="{t2.text='2'}" />

        </HGroup>
        <FxButton label="3" />

    </HGroup>

</FxApplication>

------------------------------------------------------------------------

Run the application and click on any of the buttons with the labels '1' and '2'. The result is that the layout breaks, as if the group that contains the clicked button looses its size information. I don't know where the problem is occuring (group, layout ...), that' why I didn't know where to file the bug.


Any idea?

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com



This topic has been closed for replies.

4 replies

Participating Frequently
November 26, 2008
Awesome, thanks. I opened the bug.
Known Participant
November 26, 2008
Bug report: https://bugs.adobe.com/jira/browse/SDK-18219

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com






On Tue, Nov 25, 2008 at 8:58 PM, Peter deHaan < member@adobeforums.com> wrote:

A new message was posted by Peter deHaan in



Developers --

  Strange layout behavior in Gumbo







Haykel Ben Jemia,



 



Yes, please file a bug at http://bugs.adobe.com/flex/
for this (you can probably file it against Gumbo: Layout or FXG, we can move it
later after investigating further).



Looking at the following snippet, it looks like the inner HGroup
container's width and height are somehow getting reset to 0:



 



<?xml version="1.0"
encoding="utf-8"?>



<FxApplication xmlns=" http://ns.adobe.com/mxml/2009 " >




    <layout>




        <VerticalLayout />




    </layout>




   



    <!--




    <VGroup >



        <FxButton
label="1" click="{t1.text='1'}" />



        <TextGraphic
id="t1" text="0" />



        <FxButton
label="2" click="{t1.text='2'}" />



        <Label
text="{t1.width}x{t1.height}" />



    </VGroup>



    -->



 



      <Form>




            <FormItem label=" Outer HGroup: " >




                  <Label text=" w:{ hg1.width }, h:{ hg1.height } " />




            </FormItem>




            <FormItem label=" Inner HGroup: " >




                  <Label text=" w:{ hg2.width }, h:{ hg2.height } " />




            </FormItem>




            <FormItem label=" TextGraphic: " >




                  <Label text=" w:{ t2.width }, h:{ t2.height } " />




            </FormItem>




      </Form>




 



    <HGroup id=" hg1 " >




        <HGroup id=" hg2 " >




            <FxButton label=" 1 "
click="t2.text=
'1' ;" />




            <TextGraphic id=" t2 "
text="
0 " />




            <FxButton label=" 2 "
click="t2.text=
'2' ;" />




        </HGroup>




        <FxButton label=" 3 " />




    </HGroup>




 



</FxApplication>



 



 



Before pressing FxButton; Inner HGroup width/height: 160,21



After pressing FxButton; Inner HGroup width/height: 0,0



 



This seems to happen if I use a TextGraphic or TextBox (but not
if I use a TextView or a Label/Text component).



 



Thanks,



 



Peter deHaan



Adobe Flex SDK Team



 



 



 





From: Haykel Ben Jemia
[mailto: member@adobeforums.com]

Sent: Monday, November 24, 2008 11:51 PM

To: flexsdk-dev@adobeforums.com

Subject: Strange layout behavior in Gumbo





 



A new discussion was started by
Haykel Ben Jemia in




Developers --

  Strange layout behavior in Gumbo



Hi,



I'm getting a strange layout behavior in Gumbo. This seems to be a regression
as I was not having the problem with the code of November 12th. Only after
updating on November 21th, the problem arised. Here's a sample application:



------------------------------------------------------------------------

<?xml version="1.0"
encoding="utf-8"?>

<FxApplication xmlns=" http://ns.adobe.com/mxml/2009">

    <layout>

        <VerticalLayout />

    </layout>

   

    <VGroup>

        <FxButton label="1"
click="{t1.text='1'}" />

        <TextGraphic id="t1"
text="0" />

        <FxButton label="2"
click="{t1.text='2'}" />

    </VGroup>

   

    <HGroup>

        <HGroup>

            <FxButton
label="1" click="{t2.text='1'}" />

            <TextGraphic
id="t2" text="0" />

            <FxButton
label="2" click="{t2.text='2'}" />

        </HGroup>

        <FxButton label="3" />

    </HGroup>



</FxApplication>


------------------------------------------------------------------------



Run the application and click on any of the buttons with the labels '1' and
'2'. The result is that the layout breaks, as if the group that contains the
clicked button looses its size information. I don't know where the problem is
occuring (group, layout ...), that' why I didn't know where to file the bug.



Any idea?



Haykel Ben Jemia



Allmas

Web & RIA Development

http://www.allmas-tn.com
















View/reply at Strange layout behavior in
Gumbo


Replies by email are OK.

Use the unsubscribe
form to cancel your email subscription.











View/reply at Strange layout behavior in Gumbo

Replies by email are OK.

Use the unsubscribe form to cancel your email subscription.



Participating Frequently
November 25, 2008
<div class=Section1><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Haykel Ben Jemia,<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Yes, please file a bug at <a href="http://bugs.adobe.com/flex/">http://bugs.adobe.com/flex/</a><br />for this (you can probably file it against Gumbo: Layout or FXG, we can move it<br />later after investigating further).<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Looking at the following snippet, it looks like the inner HGroup<br />containerâs width and height are somehow getting reset to 0:<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>&lt;?xml version=&quot;1.0&quot;<br />encoding=&quot;utf-8&quot;?&gt;</span><span style='font-size:10.0pt;font-family:<br />"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:blue'>&lt;FxApplication</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'> xmlns=&quot;</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:#990000'>http://ns.adobe.com/mxml/2009</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'>&quot;</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>    </span><span style='font-size:10.0pt;<br />font-family:"Courier New";color:blue'>&lt;layout&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>        </span><span style='font-size:<br />10.0pt;font-family:"Courier New";color:blue'>&lt;VerticalLayout</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'> </span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>/&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>    </span><span style='font-size:10.0pt;<br />font-family:"Courier New";color:blue'>&lt;/layout&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>    </span><span style='font-size:10.0pt;<br />font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>    </span><span style='font-size:10.0pt;<br />font-family:"Courier New";color:maroon'>&lt;!--</span><span style='font-size:<br />10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:maroon'>    &lt;VGroup &gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:maroon'>        &lt;FxButton<br />label=&quot;1&quot; click=&quot;{t1.text='1'}&quot; /&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:maroon'>        &lt;TextGraphic<br />id=&quot;t1&quot; text=&quot;0&quot; /&gt;</span><span style='font-size:10.0pt;<br />font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:maroon'>        &lt;FxButton<br />label=&quot;2&quot; click=&quot;{t1.text='2'}&quot; /&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:maroon'>        &lt;Label<br />text=&quot;{t1.width}x{t1.height}&quot; /&gt;</span><span style='font-size:<br />10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:maroon'>    &lt;/VGroup&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:maroon'>    --&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New"'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>      </span><span style='font-size:<br />10.0pt;font-family:"Courier New";color:blue'>&lt;Form&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>            </span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>&lt;FormItem</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'> label=&quot;</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:#990000'>Outer HGroup:</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'>&quot;</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>                  </span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>&lt;Label</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'> text=&quot;</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:#990000'>w:{</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'>hg1.width</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:#990000'>}, h:{</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'>hg1.height</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:#990000'>}</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'>&quot; </span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>/&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>            </span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>&lt;/FormItem&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>            </span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>&lt;FormItem</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'> label=&quot;</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:#990000'>Inner HGroup:</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'>&quot;</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>                  </span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>&lt;Label</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'> text=&quot;</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:#990000'>w:{</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'>hg2.width</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:#990000'>}, h:{</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'>hg2.height</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:#990000'>}</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'>&quot; </span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>/&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>            </span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>&lt;/FormItem&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>            </span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>&lt;FormItem</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'> label=&quot;</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:#990000'>TextGraphic:</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'>&quot;</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>                  </span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>&lt;Label</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'> text=&quot;</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:#990000'>w:{</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'>t2.width</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:#990000'>}, h:{</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'>t2.height</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:#990000'>}</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'>&quot; </span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>/&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>            </span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>&lt;/FormItem&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>      </span><span style='font-size:<br />10.0pt;font-family:"Courier New";color:blue'>&lt;/Form&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New"'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>    </span><span style='font-size:10.0pt;<br />font-family:"Courier New";color:blue'>&lt;HGroup</span><span style='font-size:<br />10.0pt;font-family:"Courier New";color:black'> id=&quot;</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:#990000'>hg1</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'>&quot;</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>        </span><span style='font-size:<br />10.0pt;font-family:"Courier New";color:blue'>&lt;HGroup</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'> id=&quot;</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:#990000'>hg2</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'>&quot;</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>            </span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>&lt;FxButton</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'> label=&quot;</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:#990000'>1</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'>&quot;<br />click=&quot;t2.text=</span><b><span style='font-size:10.0pt;font-family:"Courier New";<br />color:#990000'>'1'</span></b><span style='font-size:10.0pt;font-family:"Courier New";<br />color:black'>;&quot; </span><span style='font-size:10.0pt;font-family:"Courier New";<br />color:blue'>/&gt;</span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>            </span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>&lt;TextGraphic</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'> id=&quot;</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:#990000'>t2</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'>&quot;<br />text=&quot;</span><span style='font-size:10.0pt;font-family:"Courier New";<br />color:#990000'>0</span><span style='font-size:10.0pt;font-family:"Courier New";<br />color:black'>&quot; </span><span style='font-size:10.0pt;font-family:"Courier New";<br />color:blue'>/&gt;</span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>            </span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>&lt;FxButton</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'> label=&quot;</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:#990000'>2</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'>&quot;<br />click=&quot;t2.text=</span><b><span style='font-size:10.0pt;font-family:"Courier New";<br />color:#990000'>'2'</span></b><span style='font-size:10.0pt;font-family:"Courier New";<br />color:black'>;&quot; </span><span style='font-size:10.0pt;font-family:"Courier New";<br />color:blue'>/&gt;</span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>        </span><span style='font-size:<br />10.0pt;font-family:"Courier New";color:blue'>&lt;/HGroup&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>        </span><span style='font-size:<br />10.0pt;font-family:"Courier New";color:blue'>&lt;FxButton</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'> label=&quot;</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:#990000'>3</span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:black'>&quot; </span><span<br />style='font-size:10.0pt;font-family:"Courier New";color:blue'>/&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:black'>    </span><span style='font-size:10.0pt;<br />font-family:"Courier New";color:blue'>&lt;/HGroup&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New"'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:blue'>&lt;/FxApplication&gt;</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Before pressing FxButton; Inner HGroup width/height: 160,21<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>After pressing FxButton; Inner HGroup width/height: 0,0<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>This seems to happen if I use a TextGraphic or TextBox (but not<br />if I use a TextView or a Label/Text component).<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Thanks,<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Peter deHaan<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Adobe Flex SDK Team<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><br /><br /><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Haykel Ben Jemia<br />[mailto:member@adobeforums.com] <br><br /><b>Sent:</b> Monday, November 24, 2008 11:51 PM<br><br /><b>To:</b> flexsdk-dev@adobeforums.com<br><br /><b>Subject:</b> Strange layout behavior in Gumbo<o:p></o:p></span></p><br /><br /></div><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>A new discussion was started by<br />Haykel Ben Jemia in <br><br /><br><br /><b>Developers</b> --<br><br />  Strange layout behavior in Gumbo<br><br /><br><br />Hi,<br><br /><br><br />I'm getting a strange layout behavior in Gumbo. This seems to be a regression<br />as I was not having the problem with the code of November 12th. Only after<br />updating on November 21th, the problem arised. Here's a sample application:<br><br /><br><br />------------------------------------------------------------------------<br><br /><span style='font-family:"Courier New"'>&lt;?xml version=&quot;1.0&quot;<br />encoding=&quot;utf-8&quot;?&gt;<br><br />&lt;FxApplication xmlns=&quot;<a href="http://ns.adobe.com/mxml/2009">http://ns.adobe.com/mxml/2009</a>&quot;&gt;<br><br />    &lt;layout&gt;<br><br />        &lt;VerticalLayout /&gt;<br><br />    &lt;/layout&gt;<br><br />    <br><br />    &lt;VGroup&gt;<br><br />        &lt;FxButton label=&quot;1&quot;<br />click=&quot;{t1.text='1'}&quot; /&gt;<br><br />        &lt;TextGraphic id=&quot;t1&quot;<br />text=&quot;0&quot; /&gt;<br><br />        &lt;FxButton label=&quot;2&quot;<br />click=&quot;{t1.text='2'}&quot; /&gt;<br><br />    &lt;/VGroup&gt;<br><br />    <br><br />    &lt;HGroup&gt;<br><br />        &lt;HGroup&gt;<br><br />            &lt;FxButton<br />label=&quot;1&quot; click=&quot;{t2.text='1'}&quot; /&gt;<br><br />            &lt;TextGraphic<br />id=&quot;t2&quot; text=&quot;0&quot; /&gt;<br><br />            &lt;FxButton<br />label=&quot;2&quot; click=&quot;{t2.text='2'}&quot; /&gt;<br><br />        &lt;/HGroup&gt;<br><br />        &lt;FxButton label=&quot;3&quot; /&gt;<br><br />    &lt;/HGroup&gt;<br><br /><br><br />&lt;/FxApplication&gt;</span><br><br />------------------------------------------------------------------------<br><br /><br><br />Run the application and click on any of the buttons with the labels '1' and<br />'2'. The result is that the layout breaks, as if the group that contains the<br />clicked button looses its size information. I don't know where the problem is<br />occuring (group, layout ...), that' why I didn't know where to file the bug.<br><br /><br><br />Any idea?<br><br /><br clear=all><br />Haykel Ben Jemia<br><br /><br><br />Allmas<br><br />Web & RIA Development<br><br /><a href="http://www.allmas-tn.com">http://www.allmas-tn.com</a><br><br /><br><br /><br><br /><br><br /><o:p></o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b71b5b">Strange layout behavior in<br />Gumbo</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b71b5b!folder=.3c060fa3">unsubscribe</a><br />form to cancel your email subscription.<o:p></o:p></p><br /><br /></div>
Participating Frequently
November 25, 2008
Hmm, interesting bug. Just go ahead and file it under Gumbo Layout for now. Also, post the bug id in here so we can make sure it gets looked at.

Thanks,
Ryan