Hi John H, I would also encourage you to check out a recent blog post on the GWT blog by fellow GWT developers Chris Klundt and Eric Wuebben, who talk about their strategy on applying CSS styles (link below). Hopefully from what was discussed here and in the blog, you will be able to find out what approach works best for you.
GWT: No need to shortchange your style: http://googlewebtoolkit.blogspot.com/2008/12/gwt-no-need-to-shortchange-your-style.html Regarding performance, whether you set properties like width and height in GWT code or in CSS doesn't make a huge difference. What does matter is how you go about applying the CSS styles (for example, how you use CSS selectors to style your application). For this topic, you should get a good number of reads by performing a web search for terms like "CSS performance". Hope that helps, -Sumit Chandel On Mon, Mar 9, 2009 at 9:06 PM, John H <[email protected]> wrote: > > In general, for better performance. Would you rather > > public SomePanel extends Panel { > > public SomePanel() { > setWidth("100px"); > setWidth("100px"); > ............ > } > .......... > } > > OR > > panel-style { > width: 100px; > height: 100px; > } > > I tend to try setting every css style attribute during the creation of > a panel object just cause I think it's more readable and more flexible > to organize code outside of CSS style sheets. But is this a better > approach trying to achieve better performance or not or does it really > matter? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
