click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r930673 - /click/trunk/click/extras/src/org/apache/click/extras/control/PickList.java
Date Sun, 04 Apr 2010 12:34:04 GMT
Author: sabob
Date: Sun Apr  4 12:34:03 2010
New Revision: 930673

URL: http://svn.apache.org/viewvc?rev=930673&view=rev
Log:
don't render width of 0

Modified:
    click/trunk/click/extras/src/org/apache/click/extras/control/PickList.java

Modified: click/trunk/click/extras/src/org/apache/click/extras/control/PickList.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/org/apache/click/extras/control/PickList.java?rev=930673&r1=930672&r2=930673&view=diff
==============================================================================
--- click/trunk/click/extras/src/org/apache/click/extras/control/PickList.java (original)
+++ click/trunk/click/extras/src/org/apache/click/extras/control/PickList.java Sun Apr  4
12:34:03 2010
@@ -687,7 +687,9 @@ public class PickList extends Field {
         model.put("selectedLabel", selectedLabel);
         model.put("unselectedLabel", unselectedLabel);
         model.put("format", new Format());
-        model.put("size", new Integer(getSize()));
+        if (getSize() != 0) {
+            model.put("size", new Integer(getSize()));
+        }
         model.put("height", new Integer(getHeight()));
         model.put("valid", new Boolean(isValid()));
         model.put("disabled", new Boolean(isDisabled()));



Mime
View raw message