I would use a HeaderPanel. HeaderPanel provides header and footer that are
__natively__ (naturally) sized by the browser. So here it goes

empty div for the header
<div/>

a table style div for the middle (resizable widget)
<div style="width: 100%; height: 100%; display: table">
    <div style="width: 50%; height: 100%; display: cell"/>
    <div style="width: 50%; height: 100%; display: cell"/>
</div>

and for the footer almost the same
<div style="width: 100%; height: 30px; display: table">
    <div style="width: 50%; height: 100%; display: cell"/>
    <div style="width: 50%; height: 100%; display: cell"/>
</div>

This will do the automatically resizing of the middle widgets for you.

Instead of div you can consider Widgets, Composite or HTMLPanels or
whatever to put in your UIBinder

   Vassilis



On Thu, Feb 20, 2014 at 2:03 AM, Jens <jens.nehlme...@gmail.com> wrote:

> Use setWidgetTopBottom() for the upper layers:
>
>
>         LayoutPanel layout = new LayoutPanel();
>         layout.add(leftTop);
>         layout.setWidgetLeftWidth(leftTop, 0, Style.Unit.PCT, 50,
> Style.Unit.PCT);
>         layout.setWidgetTopBottom(leftTop, 0, 
> Style.Unit.PCT<http://style.unit.pt/>,
> 30, Style.Unit.PT);
>
>         layout.add(rightTop);
>         layout.setWidgetRightWidth(rightTop, 0, Style.Unit.PCT, 50,
> Style.Unit.PCT);
>         layout.setWidgetTopBottom(rightTop, 0, 
> Style.Unit.PCT<http://style.unit.pt/>,
> 30, Style.Unit.PT);
>
>         layout.add(leftBottom);
>         layout.setWidgetLeftWidth(leftBottom, 0, Style.Unit.PCT, 50,
> Style.Unit.PCT);
>         layout.setWidgetBottomHeight(leftBottom, 0, 
> Style.Unit.PCT<http://style.unit.pt/>,
> 30, Style.Unit.P <http://style.unit.pt/>T);
>
>         layout.add(rightBottom);
>         layout.setWidgetRightWidth(rightBottom, 0, Style.Unit.PCT, 50,
> Style.Unit.PCT);
>         layout.setWidgetBottomHeight(rightBottom, 0, 
> Style.Unit.PCT<http://style.unit.pt/>,
> 30, Style.Unit.PT <http://style.unit.pt/>);
>
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to