I don't mean to hijack this thread, but I have been looking for the same thing.
ScrollPanels in a DockLayoutPanel may be okay, but this behavior is different from general web mechanics and what most people expect - web pages as a whole scroll, not just small sections (usually, anyway). There doesn't seem to be any way to get the DockLayoutPanel to expand past the page's edge to make all the content of the center area visible. Adding the DockLayoutPanel to a ScrollPanel doesn't work (even if you take out the "position:relative" style from the ScrollPanel <div>) because the DockLayoutPanel's center doesn't expand to allow all its content to fit. Does anyone know if there is a solution for this. Regards, Z. On Dec 5, 7:18 am, Alexandre Ardhuin <[email protected]> wrote: > Hi, > > You have to explicitly add ScrollPanel in your DockLayoutPanel to make the > area scrollable. > > Alexandre > > 2011/12/5 saurabh saurabh <[email protected]> > > > > > > > > > Hi everyone, > > I got the following lines of code here: > > > DockLayoutPanel doc = new DockLayoutPanel(Unit.PX); > > .... > > //some code goes here to add widgets to doc > > .... > > > RootLayoutPanel.get().add(doc); > > > Now the size of docklayoutpanel here exeeds client window height but I > > am not getting any scroll bars here on browser. I see css property > > 'overflow: hidden' could be a problem but taking out all 'overflow: > > hidden' makes it more ugly. > > I hope there would be a better solution to handle this problem > > > Thanks in advance > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
