diff options
Diffstat (limited to 'src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java b/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java index 281b6f4d16..9e062eee80 100644 --- a/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java +++ b/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java @@ -371,6 +371,10 @@ public class ApplicationConfiguration implements EntryPoint { public void onModuleLoad() { + // Enable IE6 Background image caching + if (BrowserInfo.get().isIE6()) { + enableIE6BackgroundImageCache(); + } // Prepare VConsole for debugging if (isDebugMode()) { VDebugConsole console = GWT.create(VDebugConsole.class); @@ -400,6 +404,19 @@ public class ApplicationConfiguration implements EntryPoint { startNextApplication(); } + // From ImageSrcIE6 + private static native void enableIE6BackgroundImageCache() + /*-{ + // Fix IE background image refresh bug, present through IE6 + // see http://www.mister-pixel.com/#Content__state=is_that_simple + // this only works with IE6 SP1+ + try { + $doc.execCommand("BackgroundImageCache", false, true); + } catch (e) { + // ignore error on other browsers + } + }-*/; + /** * Checks if client side is in debug mode. Practically this is invoked by * adding ?debug parameter to URI. |