summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2008-02-26 07:55:31 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2008-02-26 07:55:31 +0000
commit2410c3ee17c3fc6b587718fa72b2148cc6f37f1d (patch)
tree4f9317399ca760c85b68d00965b1afcde40aa1b1
parent04327bdeae22228f7bda16298f5de0583ac5099b (diff)
downloadvaadin-framework-2410c3ee17c3fc6b587718fa72b2148cc6f37f1d.tar.gz
vaadin-framework-2410c3ee17c3fc6b587718fa72b2148cc6f37f1d.zip
changed minimum size for expanded widget
svn changeset:3924/svn branch:trunk
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/client/ui/IExpandLayout.java11
1 files changed, 8 insertions, 3 deletions
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.