Am Montag, 3. September 2012 16:41:16 UTC+2 schrieb Jens: 
>
> http://jsfiddle.net/EHCGu/
>  
> you can drag the vertical splitter to change the size of the result and 
> the label <div> fills all the space while the button is float:right. No 
> need to use any onResize() JavaScript as the browser takes care of the 
> size. Maybe you can omit the  div that clears the float:right.
>
> You should use as much CSS as you can, so you don't have to worry about 
> resizing your widgets. Let the browser do it. 
>  
>
 
Hi Jens,
 
this looks good. I often read about letting the browser do most of the 
layout is much faster.
 
The problem is to integrate this pure HTML/CSS code (your example) into an 
existing environment within GWT, i. e. into a LayoutPanel. The place, where 
the composite widget should be inserted, is a LayoutPanel. I believe that 
whenever I inserted something into a LayoutPanel it gets invisible because 
of size 0. This in turn results in setting the sizes explicitely and so on.
 
So how would one do this (your example) within GWT? Which Panels to use for 
the three DIVs? And how to avoid zero sizes when inserting into the 
LayoutPanel...
 
Magnus

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/eYL3apWhPvUJ.
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