Why use HorizontalPanel instead of just using an HTML table? On Nov 30, 4:36 pm, Craig <[email protected]> wrote: > Change the width of the first cell from 80px to 100% to move all the > buttons to the right. > > On Nov 29, 7:35 am, Baloe <[email protected]> wrote: > > > 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 [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.
