Tuesday, September 21, 2010

RootLayoutPanel adds extra divs which makes it unusable. Why?

Hi,

In an app I was using RootLayoutPanel as it seems to be the new gwt
2.0 way of using panels.

It generates 3 extra divs, which, besides too much markup, they also
introduce some problems with onclick events being passed to various
elements. I've found similar complaints from others, e.g.
http://www.devcomments.com/RootPanel-vs-RootLayoutPanel-at197454.htm

Going back to RootPanel removes extra divs and issues.
The only difference between the two in docs is:
"This panel automatically calls RequiresResize.onResize() on itself
when initially created, and whenever the window is resized."

So what's the actual purpose of RootLayoutPanel? Are the extra divs
really necessary?

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

No comments:

Post a Comment