I've not used the Tree myself but inline-block might be of use here e.g.

http://jsfiddle.net/2uQB3/1/

If that is what you're after then GWT provides the inline-block rule
correctly browser-sniffed -

http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/resources/client/CommonResources.java

On Thu, Mar 22, 2012 at 9:40 PM, dhoffer <[email protected]> wrote:
> I have a GWT Tree that contains custom TreeItems that consist of a
> leading image (ImageResource), then some text, and followed with
> another optional image.  The later image is a URL not an ImageResource
> because the contents are dynamic at runtime.
>
> Currently I'm building some custom SafeHtml just appending three
> SafeHtml's together.  I use ImageResourceRenderer for the first image,
> then SimpleSafeHtmlRenderer for the text, and then Template for the
> URL image.
>
> However the results are not good.  The first image is top aligned
> instead of centered with the text and the selection rectangle.  (I
> haven't even gotten to testing with the trailing image yet.)
>
> I do have my custom HTML wrapped in a span with custom class name so I
> can configure with CSS but I have a feeling I'm not doing this the
> right way.
>
> How can I have better control over the vertical alignment of things?
> Specifically the ImageResource needs to be centered.
>
> -Dave
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
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