Try moving the .right FlowPanel before the .inline one; and/or giving it
display:inline-block too.
On Friday, February 15, 2013 2:56:42 PM UTC+1, membersound wrote:
>
> Hi,
>
> I want to create a header with 2 elements: one aligned inline to the
> middle, and some aligned right.
>
> The following works fine in Firefox, but in Chrome there is a linebreak
> between the two FlowPanels. What is wrong with this code:
>
> .inline { display: inline-block; }
> .right { float: right; }
>
> <g:FlowPanel>
> <g:FlowPanel styleName="{style.inline}">
> <g:Label text="inline" />
> </g:FlowPanel>
>
> <g:FlowPanel styleName="{style.right}">
> <g:Label text="right1" />
> <g:Label text="right2..." />
> </g:FlowPanel>
> </g:FlowPanel>
>
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.