]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix for #2172 - Tabsheet tab width
authorArtur Signell <artur.signell@itmill.com>
Fri, 24 Oct 2008 13:18:32 +0000 (13:18 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 24 Oct 2008 13:18:32 +0000 (13:18 +0000)
svn changeset:5716/svn branch:trunk

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

index 14c0f1c989ae6978f29c07c66a4383c111937628..c87afe4c6d300bfa8791d2b6d1bde9cba2a7f1f2 100644 (file)
@@ -292,6 +292,12 @@ public class ITabsheet extends ITabsheetBase implements
             tb.addTab(c);
         }
         c.updateCaption(tabUidl);
+
+        /*
+         * Force the width of the caption container so the content will not wrap
+         * and tabs won't be too narrow in certain browsers
+         */
+        c.setWidth(c.getWidth() + "px");
         captions.put("" + index, c);
         if (selected) {
             renderContent(tabUidl.getChildUIDL(0));