diff options
Diffstat (limited to 'src/com/vaadin/terminal/gwt/client/BrowserInfo.java')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/BrowserInfo.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/BrowserInfo.java b/src/com/vaadin/terminal/gwt/client/BrowserInfo.java index 50a59e4975..ef1dc481b1 100644 --- a/src/com/vaadin/terminal/gwt/client/BrowserInfo.java +++ b/src/com/vaadin/terminal/gwt/client/BrowserInfo.java @@ -300,4 +300,16 @@ public class BrowserInfo { return touchDevice; } + /** + * Indicates whether the browser might require juggling to properly update + * sizes inside elements with overflow: auto. + * + * @return <code>true</code> if the browser requires the workaround, + * otherwise <code>false</code> + */ + public boolean requiresOverflowAutoFix() { + return (getWebkitVersion() > 0 || getOperaVersion() >= 11) + && Util.getNativeScrollbarSize() > 0; + } + } |