Reposting the code ....
On Fri, Mar 30, 2012 at 9:24 PM, GWTter <seth.gwt@gmail.com> wrote:
Hi Deepak,
I attached the code. The file contains the two classes that should get you right where you want to be, the MyVerticalScrollBar class being the more important one as this is the one that actually gets you the custom scroll bar. My extension of the CustomScrollPanel class is important to me since in it I override the style for the corner box that appears in the bottom left corner when both the vertical and horizontal scroll bars appear. Just make sure to have this:
.customScrollPanelCorner{
/* whatever style you want here */
}
in your resource css file in order to override the corner style (in my implementation I set it to be transparent). You should be able to easily translate the vertical scroll bar for the horizontal scroll bar which is why I just included the vertical code.
Also, you may find it a little frustrating that there seems to be no easy way to determine if the corner box is displayed in order to take it's dimensions into consideration so that the scroll bar can be sized appropriately. If you can think of a way to do that
or can think of any improvements to the code please let me know :).
Hope this helps,
-Seth
Deepak Singh
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment