If you're using DockLayoutPanel you're going to probably need to use
RootLayoutPanel.get().add(); - This means that it will take up the *whole*
page whereas if you use RootPanel.get("element").add(widget); it will grab
the div or whatever you're using element from the host html page.

For my own layouts I usually set it up with HTML/CSS and use the RootPanel
to display the given widgets. However, using DockLayoutPanel to take up the
whole screen you can add g:east and g:west panels w/out any worry of CSS
layout stuff. It's all just javascript.


On Thu, Aug 4, 2011 at 5:28 PM, footh <[email protected]> wrote:

> I'm sure this is easy to do but I'm more of a business logic
> programmer and I get all tied up when trying to build a UI.
>
> I'm trying to build a standard fixed layout with a header and footer
> and a content section that expands or contracts with the content.
> Pretty much like a lot of websites out there (yahoo, for one).
>
> The closest I've gotten is using a DockLayoutPanel and adding a north
> section for the header, a south section for the footer and of course a
> center section for the content.  I then tried adding left and right
> margins using CSS.  Two problems occurred with this solution 1) the
> margins stayed even as you shrunk the browser and 2) I put an
> arbitrary amount of text in the main content section and if it was too
> long for the section, it would cut off at the bottom where the footer
> started.
>
> I was wondering if someone can provide a nice and concise solution (or
> point me in the right direction) for this seemingly obvious layout
> using GWT.  I've been using UIBinder but would be happy to see any
> example.
>
> Your UI-challenged colleague,
>
> -footh
>
> --
> 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.
>
>


-- 
Which would you rather believe in: A God that never answers you or a society
that embraces you?

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