On 9 Jun., 14:11, Ian Bambury <ianbamb...@gmail.com> wrote: > > 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 does this style mean? > > - 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. Ok, it seems that it is possible for all UIObjects to determine their pixel size. getOffsetHeight and getOffsetWidth? Thanks Magnus -- 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.