On 5 nov, 12:06, DevUnion <[EMAIL PROTECTED]> wrote: > Hello All, > > I've started GWT studying few days ago. And I have a lot of questions. > For example, I need to create next layout: > > +-------------------------------------------------------------------------- > ---------------------------------------------- > + > | Logo Image Here | Empty > space | Help | > +-------------------------------------------------------------------------- > ---------------------------------------------- > + > > I've tried next approach: > > DockPanel header = new DockPanel(); > header.add(clientImageBundle.firstmileLogo().createImage(), > DockPanel.WEST); > header.add(helpLink, DockPanel.EAST); > > But it doesn't work. > > Can anyone help me?
For this same kind of layout, I'm currently using a FlowPanel and a float:right CSS rule. But you can do it more easily (if you don't know HTML and/or CSS well) with a Grid or HorizontalPanel (I have a preference for Grid, but it's a personal choice): Grid header = new Grid(1, 2); header.setHTML(0, 0, clientImageBundle.firstmileLogo().getHTML()); header.setWidget(0, 1, helpLink); // and now align the helpLink to the right header.getCellFormatter().setHorizontalAlignment(0, 1, HasHorizontalAlignment.ALIGN_RIGHT); --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---