On 9 June 2010 11:48, Magnus <alpineblas...@googlemail.com> wrote:

> Hi Ian,
>
> as longer I think about your advice, the more I like it. You could do
> interesting things within the resize code, e. g. hide some widgets if
> there is not enough room...
>
> However, before I give it a new try, I need some additional
> information:
>
> - If I calculate everything on my own: Which LayoutPanel should I use
> for the parent area (e. g. AbsolutePanel?)?
>

You don't need a parent panel as such, just position it absolutely after
adding it to the RootPanel.


> - For doing the layout for child objects, I need to determine their
> sizes
>  E. g. to center a TextBox, I need its width in pixels. How do I get
> this?
>

getWidth() ?

but you just need to use 'margin:0 auto'



> - What if I do not know the pixel sizes of child objects?
>  E. g. my chess board is a Grid. I don't know its pixel size. How do
> I do this?
>

How come you don't know its size? Didn't you set it? 16 x each square plus
borders, or just get the width.

>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to