Hi Mike,

I'm trying to understand your issue...

I'm assuming that DockLayoutPanel is in an Activity and that you're
adding it to the SimplePanel using panel.setWidget() in the start
method...? (I don't want to teach you to suck eggs - but you can use
Firebug (or similar) to check the DOM of your page and make sure the
DockLayoutPanel is actually being added).

If so, it sounds like you just need to force the DockLayoutPanel to be
100% the height of it's container:

dlp.setHeight("100%");

If not I can give you a basic structure that at least works for me...

Cheers,
Dave

On Aug 15, 3:51 pm, Mike Dee <[email protected]> wrote:
> I replaced RootPanel with RootLayoutPanel.
>
> Here is the EntryPoint from HelloMVP:
>
>  private SimplePanel appWidget = new SimplePanel();
>  ...
>  RootPanel.get().add( appWidget );
>  activityManager.setDisplay( appWidget );
>
> I replaced RootPanel with RootLayoutPanel:
>
>  private SimplePanel appWidget = new SimplePanel();
>  ...
>  RootLayoutPanel.get().add( appWidget );
>  activityManager.setDisplay( appWidget );
>
> Maybe I'm a little too naive in thinking that would do much.
>
> Also, when I look at the page source generated, it appears a DOCTYPE
> is already there.  Here is the page source generated by the GWT app
> (HelloMVP).
>
>  <!doctype html>
>  <!-- The DOCTYPE declaration above will set the    -->
>  <!-- browser's rendering engine into               -->
>  <!-- "Standards Mode". Replacing this declaration  -->
>  <!-- with a "Quirks Mode" doctype may lead to some -->
>  <!-- differences in layout.                        -->
>
> If I create a simple GWT app (not Activities & Places) and plop a
> DockLayoutPanel in the RootPanel, it just works.  Fills the page
> nicely without having to add any onResize handlers.  Is there a reason
> why adding handlers would be needed in an Activities & Places
> framework (such as that provided by HelloMVP)?  I'd like to understand
> that a bit more.
>
> On Aug 15, 4:44 am, "P.G.Taboada" <[email protected]> wrote:
>
>
>
> > You need rootlayoutpanel, the host page should be in standards mode
> > ( see doctype declaration).
>
> > Then you should look if all the panels being used implement provides
> > resize/ requires resize. That is the way resize events get propagated
> > to child elements in gwt.
>
> > On Aug 15, 8:00 am, Mike Dee <[email protected]> wrote:
>
> > > Getting started with Activities and Places.  I'd like to use a
> > > DockLayoutPanel to comprise the entire view (page).  When I try, it
> > > doesn't work.
>
> > > Note I'm using HelloMVP is a starting point and that in the EntryPoint
> > > a SimplePanel is set up as the default Panel.  I've tried adding a
> > > DockLayoutPanel to that.  I also tried first adding a VerticalPanel
> > > and then a DockLayoutPanel based on some suggestions here.
>
> > > The DockLayoutPanel simply doesn't display.  This was also mentioned
> > > in this message from last Oct:http://tinyurl.com/3z8mn4v.  The
> > > resolution there was to adjust the positioning styles to be absolute.
> > > However, they appear to already be absolute.
>
> > > I've played around with setting the width and height of the parent
> > > (SimplePanel) panel to 100%.  I've changed RootPanel to
> > > RootLayoutPanel in onLoadModule.  Nothing seems to work.  Seems like
> > > this would be something that is commonly done OR am I heading down the
> > > wrong path?
>
> > > Any ideas?
> > > Mike

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

Reply via email to