if % height width doesn't work then you can try relative height width.
Refer below updated example:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute"
        paddingTop="50" paddingLeft="50">
        <mx:VBox id="vb" width="300" height="200">
                <mx:HDividedBox width="{vb.width}" height="{vb.height}">
                <mx:VBox label="Left" width="100%" height="100%"
backgroundColor="#ccffcc">
                        <mx:Text text="test"/>
                        <mx:Button label="Button"/>
                </mx:VBox>
                <mx:VBox label="right" width="100%" height="100%"
backgroundColor="#ccffcc">
                        <mx:Text text="test1"/>
                        <mx:Button label="Button1"/>
                        <mx:TextArea height="400" width="100%"/>
                        <mx:Button label="Button2"/>
                </mx:VBox>
        </mx:HDividedBox>
        </mx:VBox>

</mx:WindowedApplication>


On Mar 14, 3:51 pm, Shalu <[email protected]> wrote:
> Refer below code, the scrollbar is only on VBox.Hope this will solve
> your problem.
>
> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="absolute"
>         paddingTop="50" paddingLeft="50">
>         <mx:HDividedBox width="300" height="200">
>                 <mx:VBox label="Left" width="100%" height="100%"
> backgroundColor="#ccffcc">
>                         <mx:Text text="test"/>
>                         <mx:Button label="Button"/>
>                 </mx:VBox>
>                 <mx:VBox label="right" width="100%" height="100%"
> backgroundColor="#ccffcc">
>                         <mx:Text text="test1"/>
>                         <mx:Button label="Button1"/>
>                         <mx:TextArea height="400" width="100%"/>
>                         <mx:Button label="Button2"/>
>                 </mx:VBox>
>         </mx:HDividedBox>
> </mx:WindowedApplication>
>
> On Mar 14, 1:56 pm, [email protected] wrote:
>
>
>
> > that vertical scrollbar wouldn't be belongs to HDividedbox... one would
> > belong to datagrid and other would be VBox's... set verticalscrollpolicy=off
> > for VBox and try
>
> > On Mon, Mar 14, 2011 at 13:08, thiner <[email protected]> wrote:
> > > The subject may be confusing, please let me explain it.
> > > I want to create a HDvidedBox, in this box, the left part is a tree,
> > > right part is a VBox which contains some data grids. Because of the
> > > height of the right part is not fixed, so I want to show a vertical
> > > scroll bar when the height is larger than the whole HDvidedBox.
> > > The problem here is when the vertical scroll bar of VBox show up, the
> > > vertical scroll bar of HDvidedBox show up also.
> > > How to prevent the vertical scroll bar of the whole HDividedBox
> > > showing up?
>
> > > Thanks a lot.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Flex India Community" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected].
> > > For more options, visit this group at
> > >http://groups.google.com/group/flex_india?hl=en.
>
> > --
> > Fear is an illusion, So, face it !
> > RM3sh- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to