Putting scroll bar to a component

View: New views
4 Messages — Rating Filter:   Alert me  

Putting scroll bar to a component

by tavo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, I have a component tree and I need to put a scroll bar because that extends overly.

Thank you

Re: Putting scroll bar to a component

by Winston Prakash :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

tavo wrote:
> Hi, I have a component tree and I need to put a scroll bar because that
> extends overly.
>  
May be you could put a <div> around the tree and set the "style" of the
<div> with desired width
and height and then set the CSS property "overflow:auto" to make the
scrollbar appear when ever
needed.

Ex.

<div style="height:300px; width:250px; overflow:auto">
      Your tree here
</div>

- Winston
http://blogs.sun.com/winston
> Thank you
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Putting scroll bar to a component

by Tongayi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Winston

I have tried to use the style but it doesn seem to work. I have a table that i want in a scrollable content area. This table is in a layout panel which is inside a grid panel. when I enclose the layout panel inside the div, the panel stretches downwards and the table is centered inside it.

Please assist.

Thanks in advance

Re: Putting scroll bar to a component

by Tongayi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Okay, got it working...

I put the component inside of a layout panel and then added a property overflow: auto.

Thanks again Winston
LightInTheBox - Buy quality products at wholesale price