GWT 2 Css issues with new layout panels (Proposal)

2010-01-08 Thread Sebastian
Hello,

the new layout panels SplitLayout, DockLayout etc do not mark their
elements with css classes. As a consequence, if you want to style them
with custom css, it is actually impossible. The only option is to
inject the styles directly in the code but you cannot use stylesheets
based styles.

I saw a message somewhere that the developers wanted to kick out the 2
release first before reworking the CSS.

My proposal is to mark all elements with css classes.

Sample:
div class=gwt-SplitLayoutPanel
 div class=gwt-north../div
div class=gwt-center../div
/div

Every element can now be precisely styled using something like
.gwt-SplitLayoutPanel  gwt-north{
..
}

As not all browser support the  selector, it could be better to use
gwt-SplitLayOutPanel-north instead of gwt-north.

Best Regards

Sebastian Hennebrueder
http://www.laliluna.de
-- 
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: GWT 2 Css issues with new layout panels (Proposal)

2010-01-08 Thread Chris Ramsdale
You may want to add your comments to the following issue:

http://code.google.com/p/google-web-toolkit/issues/detail?id=4429q=layout%20css

- Chris

On Fri, Jan 8, 2010 at 9:29 AM, Sebastian use...@laliluna.de wrote:

 Hello,

 the new layout panels SplitLayout, DockLayout etc do not mark their
 elements with css classes. As a consequence, if you want to style them
 with custom css, it is actually impossible. The only option is to
 inject the styles directly in the code but you cannot use stylesheets
 based styles.

 I saw a message somewhere that the developers wanted to kick out the 2
 release first before reworking the CSS.

 My proposal is to mark all elements with css classes.

 Sample:
 div class=gwt-SplitLayoutPanel
  div class=gwt-north../div
 div class=gwt-center../div
 /div

 Every element can now be precisely styled using something like
 .gwt-SplitLayoutPanel  gwt-north{
 ..
 }

 As not all browser support the  selector, it could be better to use
 gwt-SplitLayOutPanel-north instead of gwt-north.

 Best Regards

 Sebastian Hennebrueder
 http://www.laliluna.de

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 

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.