Friday, May 21, 2010

Re: ScrollPanel not displaying contents in nested DockLayoutPanels

Hi,

the problem is that ScrollPanel apparently is not propagating the layout data, according to the explained here:

  http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#Design

A workaround is to remove "position:relative" style from ScrollPanel <div>.

Savio Grossi
www.sambatech.com

On Thu, May 13, 2010 at 8:53 PM, Mike <spirydonau@gmail.com> wrote:
Hi,

I have the same type of problem but with slightly simplier structure:
RootLayoutPanel
  DockLayoutPanel
     ScrollPanel (in center)
        DockLayoutPanel

Widget within north of the last DockLayoutPanel shows up correctly.
Other parts (east, west, center, south) do not appear, i.e. if I
specify east, south and center I have nothing at all inside the
ScrollPanel however if I have north and center I can see whatever
there is in the north but not in the center. Here is an example:
               <g:north size="5">
                       <g:Label>North</g:Label>
               </g:north>
               <g:center>
                       <g:Label>Test</g:Label>
               </g:center>
where only North text is visible.

I use UiBinder for all the levels below root and 2.0.3 version of the
Toolkit. The host html page has strict HTML doctype declaration.
Initially loaded in FF 3.6.3 with Google Update plugin 1.2.183.23.
Also uploaded onto App Engine and got the same result w/o dev plugin.

Thanks,
Mike

On Apr 16, 4:51 am, rmmcgr <richard.mcgr...@gmail.com> wrote:
> Hi,
>
> I have problem with a ScrollPanel not displaying its contents that is
> buried a few layers deep in some layout panels (all done using
> UiBinder).  I have:
>
> RootLayoutPanel
>   DockLayoutPanel (for application layout)
>     TabLayoutPanel (in the center area)
>       tab
>         Custom View, implementing ResizeComposite
>           DockLayoutPanel
>             ScrollPanel (in the west area)
>               FlexGrid (for the list of items)
>             FlowLayoutPanel (in the center, for the detail of a
> particular item)
>               Form controls
>
> Problem with the above is that the list in the scroll panel is not
> showing.  FireBug is showing me that the data gets into the page, but
> is not visible.  If I swap out the ScrollPanel for, say, a FlowPlanel
> it appears.
>
> What is the trick to getting this all to work?
>
> Thanks for any help,
> Richard
>
> --
> 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 athttp://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.


--
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