]> source.dussan.org Git - vaadin-framework.git/commitdiff
changed minimum size for expanded widget
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 26 Feb 2008 07:55:31 +0000 (07:55 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 26 Feb 2008 07:55:31 +0000 (07:55 +0000)
svn changeset:3924/svn branch:trunk

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

index 6977406230e834d89847b9103289d20629ef9f55..0abb4233a4f811c0ddb0b0e1eeb97ba3edf558df 100644 (file)
@@ -34,9 +34,14 @@ public class IExpandLayout extends ComplexPanel implements
 
     public static final int ORIENTATION_VERTICAL = 0;
 
-    // We are using minimum for expanded element to avoid "odd" situations where
-    // expanded element is 0 size
-    private static final int EXPANDED_ELEMENTS_MIN_WIDTH = 40;
+    /**
+     * Minimum pixels reserved for expanded element to avoid "odd" situations
+     * where expanded element is 0 size. Default is 5 pixels to show user a hint
+     * that there is a component. Then user can often use splitpanel or resize
+     * window to show component properly. This value may be insane in some
+     * applications. Override this to specify a proper for your case.
+     */
+    protected static final int EXPANDED_ELEMENTS_MIN_WIDTH = 5;
 
     /**
      * Contains reference to Element where Paintables are wrapped.