fixes issues with floating elements like tooltips or windows svn changeset:6288/svn branch:trunktags/6.7.0.beta1
@@ -4,6 +4,8 @@ | |||
package com.itmill.toolkit.terminal.gwt.client; | |||
import com.google.gwt.user.client.ui.RootPanel; | |||
/** | |||
* Class used to query information about web browser. | |||
* | |||
@@ -17,6 +19,12 @@ public class BrowserInfo { | |||
private static String cssClass = null; | |||
static { | |||
// Add browser dependent i-* classnames to body to help css hacks | |||
String browserClassnames = get().getCSSClass(); | |||
RootPanel.get().addStyleName(browserClassnames); | |||
} | |||
/** | |||
* Singleton method to get BrowserInfo object. | |||
* |
@@ -108,10 +108,6 @@ public class IView extends SimplePanel implements Container, | |||
focus(getElement()); | |||
} | |||
String browserClassnames = browser.getCSSClass(); | |||
ApplicationConnection.getConsole().log( | |||
"Browser classnames: " + browserClassnames); | |||
root.addStyleName(browserClassnames); | |||
} | |||
private static native void focus(Element el) |