Author: vmolotkov
Date: 2008-01-16 12:01:15 -0500 (Wed, 16 Jan 2008)
New Revision: 5431
Modified:
trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx
Log:
support of width attribute is corrected
Modified: trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx
===================================================================
--- trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx 2008-01-16 16:35:28 UTC
(rev 5430)
+++ trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx 2008-01-16 17:01:15 UTC
(rev 5431)
@@ -46,8 +46,12 @@
String width = (String) component.getAttributes().get("width");
if (width != null) {
- width = HtmlUtil.qualifySize(width);
- }
+ if ((width.length() == 0) || (width == "0")) {
+ width = "150";
+ } else {
+ width = HtmlUtil.qualifySize(width);
+ }
+ }
variables.setVariable("width", width);
String inputSize = (String) component.getAttributes().get("inputSize");
Show replies by date