PDA

View Full Version : Wish to hide <grid>'s vertical scrollbar


kmeixner
01-16-2007, 01:45 PM
Hi,

I have an application where the size of data displayed in my <grid> is always the same height. I have defined the grid to be the height of this data which causes the vertical scrollbar to be disabled, however, I would prefer to make the vertical scrollbar invisible instead since it will never be active in my application.

I have looked at its code and subclass code but can't find anywhere a vertical scrollbar is actually defined.

Is there a way to hide the vertical scrollbar in the <grid> object? Can someone tell me which subclass of the <grid> object the vertical scrollbar is actually defined in?

Thanks,

Kevin

senshi
01-18-2007, 07:49 AM
This should do the trick:

yourgrid._scrx.setAttribute( "visible", false );


Definition:
lps/components/grid.lzx, l.32

<!--- @keywords private -->
<scrollbar placement="content" name="_scrx"/>

kmeixner
01-18-2007, 01:54 PM
Thank you, that did the trick!