Re: CSS and panel alignment

2010-08-02 Thread Leung


--- On Mon, 8/2/10, Rob Coops  wrote:


From: Rob Coops 
Subject: Re: CSS and panel alignment
To: google-web-toolkit@googlegroups.com
Date: Monday, August 2, 2010, 7:41 PM





On Mon, Aug 2, 2010 at 1:34 PM, Leung  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.
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.
 
 
 

Hi Rob,
 
Thank you very much for your reply.
Yes, you are correct. I put the  within the  of the table, but I have 
not specified the align of the table. I expect that it would leave it to the 
panels but it doesnt. Is there any secure way to be sure that the align will be 
overrided by the panel/widget if necessary?
 
Thanks
Ming
 


  

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



Re: CSS and panel alignment

2010-08-02 Thread Rob Coops
On Mon, Aug 2, 2010 at 1:34 PM, Leung  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
> .
> 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.



CSS and panel alignment

2010-08-02 Thread Leung
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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.