Re: Scroll are not coming while using DockLayoutPanel
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 <alexandre.ardh...@gmail.com>
wrote:
> Hi,
>
> You have to explicitly add ScrollPanel in your DockLayoutPanel to make the
> area scrollable.
>
> Alexandre
>
> 2011/12/5 saurabh saurabh <saurabh.bl...@gmail.com>
>
>
>
>
>
>
>
> > 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 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.
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home