Inline rendering in Chrome different than FF?

19 views
Skip to first unread message

membersound

unread,
Feb 15, 2013, 8:56:42 AM2/15/13
to google-we...@googlegroups.com
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>

Thomas Broyer

unread,
Feb 15, 2013, 9:25:00 AM2/15/13
to google-we...@googlegroups.com
Try moving the .right FlowPanel before the .inline one; and/or giving it display:inline-block too.

membersound

unread,
Feb 15, 2013, 9:48:42 AM2/15/13
to google-we...@googlegroups.com
Thank you very much! Swapping the Panels did the trick.
Reply all
Reply to author
Forward
0 new messages