]> source.dussan.org Git - vaadin-framework.git/commitdiff
Even more for #959 (tab scrolling) (IE6&7 still broken)
authorMarc Englund <marc.englund@itmill.com>
Wed, 4 Jun 2008 11:17:13 +0000 (11:17 +0000)
committerMarc Englund <marc.englund@itmill.com>
Wed, 4 Jun 2008 11:17:13 +0000 (11:17 +0000)
svn changeset:4740/svn branch:trunk

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

index ea94a176a8722f29a094bb76b462fae07b59c9a8..ecf9edaf8d7e10ba88e44ec97d47d3391f08839b 100644 (file)
@@ -205,6 +205,7 @@ public class ITabsheet extends ITabsheetBase implements
             DOM.setStyleAttribute(tabs, "width", "1px");
             DOM.setStyleAttribute(tabs, "overflow", "hidden");
         } else {
+            showAllTabs();
             DOM.setStyleAttribute(tabs, "width", "");
             DOM.setStyleAttribute(tabs, "overflow", "visible");
         }
@@ -344,6 +345,14 @@ public class ITabsheet extends ITabsheetBase implements
 
     }
 
+    private void showAllTabs() {
+        scrollerIndex = 0;
+        for (int i = 0; i < tb.getTabCount(); i++) {
+            DOM.setStyleAttribute(DOM.getChild(DOM.getFirstChild(DOM
+                    .getFirstChild(tb.getElement())), i + 1), "display", "");
+        }
+    }
+
     private boolean isScrolledTabs() {
         return scrollerIndex > 0;
     }