Wednesday, May 11, 2011

Re: Howto vertical center a Label within a SimplePanel?

> Ah try giving it something like top:50% and a negative top margin of
> the height of the inner item should probably do it.

Unfortunately, I cannot know the height of the inner item, since
getOffsetHeight returns 0. :-/

However, if I knew the height h of the inner item, then I could set
the top margin to the positive value h. Why should one set a negative
value?

Setting "top:50%" alone does not help.

So what can I do?

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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate