PDA

View Full Version : Left and right align question


timefortea
10-13-2008, 12:16 PM
Hi,
I'd like to place two items at the top of the screen - a logo in the top left and a link (eg. a login or logout link) in the top right. How should I code this in GWT? I've tried using RowLayout but this just lets me choose an absolute or a percentage offset, which is no use if the browser window is resized. Is there an easy way to right align something?

Thanks.

gslender
10-13-2008, 05:45 PM
TableRowLayout has setCellHorizontalAlign and with a few columns, you can do what you wanted...

cheers,
grant

timefortea
10-14-2008, 09:22 AM
Great, that's done the job thanks.