On Mon, Aug 2, 2010 at 1:34 PM, Leung <leung1_2...@yahoo.com> wrote:

> Hi,
>
> In the host html file, I have a div to specify the location to load the
> widget which is a vertical panel. I add 2 horizontal panel to it. I want the
> first one to be left alignment. The second one is right alignment.
> Should I define it from the div tag of the host file? Or should I define it
> on the panel constructor using this.setHorizontalAlignment(align)?
>
> I have tried to use this.setHorizontalAlignment(align) but the alignment
> not so right. Both panel's components are aligning to the left.
>
> Thanks
>
>
>
>
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
Hi,

I would advise using something along the lines of firebug or the Chrome
developer plugin. Most likely you will see that the style you are trying to
set is not being applied correctly. To me it sounds a lot like the problem
is that the things you are adding are tables not div's (vertical and
horizontal panels are mostly tables) so you might be setting the table
alignment to left and right but the cell contents is not following this
alignment.

Using things like docklayoutpannel and layoutpannel will give you div's that
will make your life a lot easier as they will let the children inherit these
settings just like you expect them to do.

Regards,

Rob

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to