This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes GWT and the fly likes Scrollbar issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Scrollbar issue" Watch "Scrollbar issue" New topic
Author

Scrollbar issue

salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

This is really weird,
We have an app with a horizontal splitter, I need to place content in the right side of splitter,
the content should be 2 elements:

a "Header"
a "Right content"

This was the requirement:
1. Header should be always on top: meaning the horizontal splitter panel should not have a scrollbar @ right widget
2. Right content should be a container with scrollbar, it should occupy 100% of the area, it will internally have scroll bars to fit its content.

Here is the code i tried:







[Thumbnail for IE 6.JPG]


My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

Here is a screenshot in firefox.



[Thumbnail for Firefox.JPG]

salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

I believe the issue is caused because of this:

Scroll bars inside or outside of box? >> http://css-tricks.com/the-css-overflow-property/

Any ideas how i should tackle this issue ?

In No scenario should "Always on Top Header" Label have a scrollbar at its side
also there should not be a double scrollbar.

Check attachment.



[Thumbnail for desired working.JPG]

salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

i am suprised i didnt get any response for my question,
however i did manage to crack this myself using unconventional means.
I used a flowpanel instead of a vertical panel and it worked fine.

Hope this helps someone:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Scrollbar issue
 
Similar Threads
Slider bar - Slider from both ends
GWT ScrollPanel bug?
unable to get alignment and widths right
how to get HTML div id name from RootPanel
Div not expanding