GWT opera body tag issue

Trying to get the body tag using RootPanel.get("body") when in the .html file you have <body id="body"> works fine in Firefox and Safari, but causes problems in Opera. For some reason it doesn't like getting the body element that way, instead you need to use RootPanel.getBodyElement().

We were trying to do RootPanel.get("body").setStyleName("body"); but instead had to use RootPanel.getBodyElement().setClassName("body");


As an Amazon Associate I earn from qualifying purchases.

No comments:

Post a Comment

Post Scriptum

The views in this article are mine and do not reflect those of my employer.
I am preparing to cancel the subscription to the e-mail newsletter that sends my articles.
Follow me on:
X.com (Twitter)
LinkedIn
Google Scholar

Popular Recent Posts

Most Popular Articles

apt quotation..