]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixed a random safari bug
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 6 Feb 2009 07:14:28 +0000 (07:14 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 6 Feb 2009 07:14:28 +0000 (07:14 +0000)
svn changeset:6745/svn branch:trunk

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

index 03ed3ba28af23c0ce54d6d78cbb59de90c472e32..0bb89dcea6107fac2167718ebde044f8294f1341 100644 (file)
@@ -671,6 +671,18 @@ public class ITabsheet extends ITabsheetBase {
             if (property == null || property.equals("")) {
                 tabs.getStyle().setPropertyPx("height", tb.getOffsetHeight());
             }
+            /*
+             * another hack for webkits. tabscroller sometimes drops without
+             * "shaking it" reproducable in
+             * com.itmill.toolkit.tests.components.tabsheet.TabSheetIcons
+             */
+            final Style style = scroller.getStyle();
+            style.setProperty("whiteSpace", "normal");
+            DeferredCommand.addCommand(new Command() {
+                public void execute() {
+                    style.setProperty("whiteSpace", "");
+                }
+            });
         }
 
     }