]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixes #3065: Inactive accordion tab keeps width
authorJouni Koivuviita <jouni.koivuviita@itmill.com>
Mon, 31 Aug 2009 09:10:20 +0000 (09:10 +0000)
committerJouni Koivuviita <jouni.koivuviita@itmill.com>
Mon, 31 Aug 2009 09:10:20 +0000 (09:10 +0000)
svn changeset:8593/svn branch:6.1

src/com/vaadin/terminal/gwt/client/ui/VAccordion.java

index a7fa36769f365beade3a2b7009ffadb7dbb40c79..1c83fdb43f10b06fa92588dcbb637a51880d2e4b 100644 (file)
@@ -125,7 +125,7 @@ public class VAccordion extends VTabsheetBase implements
      * same StackItem is used for rendering this time. E.g. if the first tab has
      * been removed all tabs which contain cached content must be moved 1 step
      * up to preserve the cached content.
-     *
+     * 
      * @param item
      * @param newIndex
      * @param tabUidl
@@ -396,7 +396,7 @@ public class VAccordion extends VTabsheetBase implements
 
         /**
          * Returns caption width including padding
-         *
+         * 
          * @return
          */
         public int getCaptionWidth() {
@@ -496,6 +496,7 @@ public class VAccordion extends VTabsheetBase implements
             DOM.setStyleAttribute(content, "left", "-100000px");
             removeStyleDependentName("open");
             setHeight(-1);
+            setWidth("");
             open = false;
         }