Did you try setting minWidth and minHeight to 0 on BulletTextBox?

On 5/1/14 2:09 PM, "leejk" <[email protected]> wrote:

>Hello,
>
>I have a custom component that I want to resize dynamically based on the
>orientation of the stage. Here is my layout:
>
><s:VGroup id="_VGroup" height="100%" width="100%" paddingLeft="10"
>paddingRight="10" paddingBottom="10">
>       <s:Label id="_headingLabel" fontFamily="{LayoutConstants.UI_BOLD_FONT}"
>fontSize="14" fontWeight="bold" paddingTop="30" paddingBottom="10"
>mouseEnabled="false"/>
>       <s:HGroup id="_overviewGroup" width="100%" height="100%"
>paddingBottom="50"
>mouseEnabled="false" verticalAlign="top">
>               <textboxes:BulletTextBox id="_bulletTextBox" width="100%" 
> height="100%"
>mouseEnabled="false"/>
>               <s:Image id="_overviewImage" width="400" height="300"
>mouseEnabled="false"/>
>       </s:HGroup>
>       <listboxes:ModelListBox id="_modelListBox" height="100%" width="100%"/>
>       <components:ModelListAndPdfs id="_modelListAndPdfs" height="100%"
>width="100%"/>
></s:VGroup>
>
>This works when the device is in portrait mode when the view opens, and
>the
>BulletTextBox adjusts it's width when the device is rotated to landscape,
>so
>that the text rests up against the image. But when the device is rotated
>back to portrait mode, the BulletTextBox's width remains the same. What is
>the best way to handle this?
>
>thx
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/Advice-Needed-on-Resizing-C
>ustom-Components-tp6339.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to