On Wednesday, February 6, 2013 1:05:38 PM UTC+1, membersound wrote:
>
> Hi,
>
> I have a simple FlowPanel which stacks some widgets:
>
> <g:FlowPanel>
>  <g:Label />
>  <g:CheckBox />
>  <g:MyCustomComposite />
>  <g:DataGrid />
> </g:FlowPanel>
>
> As I want to also display a DataGrid, I need to change the FlowPanel to 
> something that ProvidesResize (otherwise the datagrid does not show up).
>
> BUT: which Panel is the right one for this? So far I could only find 
> Panels which may only have a single child or require to specify east north 
> south center etc.
>

I'd try with:

<g:HeaderPanel>
  <!-- Header. -->
  <g:FlowPanel>
    <g:Label />
    <g:CheckBox />
    <g:MyCustomComposite />
  </g:FlowPanel>

  <!-- Content. -->
  <g:DataGrid />
</g:HeaderPanel>
 

> Isn't there a simple Panel that is just capable like FlowPanel to wrap 
> all children, but implements ProvidesResize?
>

There can't be. FlowPanel by essence doesn't manage the layout of its 
children, even less their dimensions; because it itself gets resized 
doesn't mean its children will.
ProvidesResize/RequiresResize is about managing the layout from the outside 
in, whereas most other widgets handle resizing from the inside-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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to