Hi,
No, this is a design decision within the framework.
This is a hard fast rule;
Whenever you want scrollbars in a child container, set the parent
container's minWidth or minHeight (whichever scrollbar yo want) to 0. This
will force the layout manager to crunch the child within it's parent's
viewable area (thus showing scrollbars) or else the layout manager will use
the measured dimension of the child and expand the parent.
Mike
On Sun, Jun 8, 2008 at 12:18 AM, Varun Shetty <[EMAIL PROTECTED]> wrote:
> specify height in pixels to the VBox and dont keep it blank or in
> percentage. (percentage should be good too, but can create a problem)
>
> regards,
> Varun Shetty
>
>
> On Sat, Jun 7, 2008 at 11:00 PM, hworke <[EMAIL PROTECTED]> wrote:
>
>>
>>
>> Hi I have declared a VBox which is
>> a child of a canvas and the height
>> of the VBox is 30% of the canvas.
>>
>> Now I am dynamically adding linkButtons
>> in this VB. But the buttons total hight
>> exceeds that of VB, the VB starts to
>> expand which I do not want. I want a
>> V scroll bar to appear instead. How do
>> I do that?
>>
>> Regards
>>
>>
>
>
--
Teoti Graphix, LLC
http://www.teotigraphix.com
Teoti Graphix Blog
http://www.blog.teotigraphix.com
You can find more by solving the problem then by 'asking the question'.