From 21fc2a80fc2648840c9663a5c8efce9eb643e444 Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Wed, 21 May 2008 08:29:08 +0000 Subject: [PATCH] fixed trivial safari issue when draggin split bar up svn changeset:4591/svn branch:trunk --- .../itmill/toolkit/terminal/gwt/client/ui/ISplitPanel.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/ISplitPanel.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/ISplitPanel.java index b7517661c1..efdc13b0dd 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/ISplitPanel.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/ISplitPanel.java @@ -192,6 +192,9 @@ public class ISplitPanel extends ComplexPanel implements Paintable, int wholeSize; int pixelPosition; + DOM.setStyleAttribute(firstContainer, "overflow", "hidden"); + DOM.setStyleAttribute(secondContainer, "overflow", "hidden"); + switch (orientation) { case ORIENTATION_HORIZONTAL: wholeSize = DOM.getElementPropertyInt(wrapper, "clientWidth"); @@ -251,8 +254,6 @@ public class ISplitPanel extends ComplexPanel implements Paintable, if (Util.isIE7()) { // Part I of IE7 weirdness hack, will be set to auto in layout phase - DOM.setStyleAttribute(firstContainer, "overflow", "hidden"); - DOM.setStyleAttribute(secondContainer, "overflow", "hidden"); Util.runDescendentsLayout(this); DeferredCommand.addCommand(new Command() { public void execute() { @@ -262,6 +263,8 @@ public class ISplitPanel extends ComplexPanel implements Paintable, }); } else { Util.runDescendentsLayout(this); + DOM.setStyleAttribute(firstContainer, "overflow", "auto"); + DOM.setStyleAttribute(secondContainer, "overflow", "auto"); } } -- 2.39.5