Monday, November 29, 2010

HorizontalPanel align in uibinder......

Hi all,

I want to display three buttons at the right of a horizontalpanel, and
then I'll add something on the left. But first, how do I get these
buttons at the right? I've read somewhere to put the in a cel, but it
doesn't matter.
Setting a stylename, setting the horizontalalignment on the cell (or
the button), setting the style on the cell, nothing is displayed in
the browser, as if I didn't type it. What's wrong?

<ui:style>
.subpanel { // the subpanel is completely ignored (looking at
firebug)
text-align: right;
float: right;
align: right;
}
</ui:style>
<g:HorizontalPanel width="100%">
<g:cell width="80px" horizontalAlignment="ALIGN_RIGHT" // the
horizontalAlignment is ignored
style="text-align:right;" // the style is ignored (looking at
firebug)
styleName="{style.subpanel}"> // the
stylename is ignored (looking at firebug)
<g:Button ui:field="buttonAdd" text="{i18n.add}" />
</g:cell>
<g:cell width="80px" horizontalAlignment="ALIGN_RIGHT">
<g:Button ui:field="buttonDelete" text="{i18n.delete}" />
</g:cell>
<g:cell width="80px" horizontalAlignment="ALIGN_RIGHT">
<g:Button ui:field="buttonEdit" text="{i18n.edit}" />
</g:cell>
</g:HorizontalPanel>
......

--
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.

No comments:

Post a Comment