From: Matti Tahvonen Date: Tue, 26 Feb 2008 07:55:31 +0000 (+0000) Subject: changed minimum size for expanded widget X-Git-Tag: 6.7.0.beta1~5018 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2410c3ee17c3fc6b587718fa72b2148cc6f37f1d;p=vaadin-framework.git changed minimum size for expanded widget svn changeset:3924/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IExpandLayout.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IExpandLayout.java index 6977406230..0abb4233a4 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IExpandLayout.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IExpandLayout.java @@ -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.