diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2013-09-27 09:25:43 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2013-09-27 09:25:43 +0000 |
commit | abc92fb204645566ab413bb0a22f7e289155623d (patch) | |
tree | 23bcec3981b557e51983536c9e41af2e6c8d4977 | |
parent | 32e6e3b8e9da68be56545b12195e988663ac4ef9 (diff) | |
download | vaadin-framework-abc92fb204645566ab413bb0a22f7e289155623d.tar.gz vaadin-framework-abc92fb204645566ab413bb0a22f7e289155623d.zip |
Added horizontal scrollbar hack also for Opera, bugs in same manner recent versions (#10255)
svn changeset:26145/svn branch:6.8
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/VPanel.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VPanel.java b/src/com/vaadin/terminal/gwt/client/ui/VPanel.java index 2b0a7956a3..55a394c2d0 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VPanel.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VPanel.java @@ -268,11 +268,12 @@ public class VPanel extends SimplePanel implements Container, contentNode.setTabIndex(uidl.getIntVariable("tabindex")); } - if (BrowserInfo.get().isWebkit() && Util.getNativeScrollbarSize() > 0 + if ((BrowserInfo.get().isWebkit() || BrowserInfo.get().isOpera()) + && Util.getNativeScrollbarSize() > 0 && getWidget().getOffsetWidth() > contentNode.getOffsetWidth()) { /* - * Most likely due to some timing issues with webkit overflow scroll hack - * causes that scrollbars are not taken into account when + * Most likely due to some timing issues with webkit overflow scroll + * hack causes that scrollbars are not taken into account when * calculating content size. See #10255 */ Scheduler.get().scheduleDeferred(new ScheduledCommand() { |