]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixed trivial safari issue when draggin split bar up
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 21 May 2008 08:29:08 +0000 (08:29 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 21 May 2008 08:29:08 +0000 (08:29 +0000)
svn changeset:4591/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/ISplitPanel.java

index b7517661c122eaf3f498e48b2d0268e19a0e8749..efdc13b0dd43f672fd31298912882d0855b2d721 100644 (file)
@@ -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");
         }
 
     }