Fix problem where hidden scrollbars prevent clicks through to the scrollable content area on Chrome(webkit?) browsers on Windows. https://code.google.com/p/google-web-toolkit/issues/detail?id=7576 This is not a fix for the same/similar issue on Mac OS for Chrome and Safari. Fix suggested by Steven Arth: https://code.google.com/p/google-web-toolkit/issues/detail?id=7576#c34 Review at http://gwt-code-reviews.appspot.com/1886803 git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@11480 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/user/client/ui/ResizeLayoutPanel.java b/user/src/com/google/gwt/user/client/ui/ResizeLayoutPanel.java index 2f4dac6..49f1278 100644 --- a/user/src/com/google/gwt/user/client/ui/ResizeLayoutPanel.java +++ b/user/src/com/google/gwt/user/client/ui/ResizeLayoutPanel.java
@@ -140,6 +140,7 @@ expandable.getStyle().setHeight(100.0, Unit.PCT); expandable.getStyle().setWidth(100.0, Unit.PCT); expandable.getStyle().setOverflow(Overflow.SCROLL); + expandable.getStyle().setZIndex(-1); elem.appendChild(expandable); expandableInner = Document.get().createDivElement().cast(); expandable.appendChild(expandableInner); @@ -160,6 +161,7 @@ collapsible.getStyle().setHeight(100.0, Unit.PCT); collapsible.getStyle().setWidth(100.0, Unit.PCT); collapsible.getStyle().setOverflow(Overflow.SCROLL); + collapsible.getStyle().setZIndex(-1); elem.appendChild(collapsible); collapsibleInner = Document.get().createDivElement().cast(); collapsibleInner.getStyle().setWidth(200, Unit.PCT);