Author: erwan
Date: Mon Jul 18 20:07:25 2011
New Revision: 1148033
URL:
http://svn.apache.org/viewvc?rev=1148033&view=revLog:
Forgot modification in HtmlFormRenderer.java at rev 1145293 when using a time-dropdown
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java?rev=1148033&r1=1148032&r2=1148033&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java Mon Jul 18 20:07:25 2011
@@ -559,6 +559,10 @@ public class HtmlFormRenderer extends Ht
if (shortDateInput) {
size = maxlength = 10;
+ if ("time".equals(dateTimeField.getType())) {
+ // the style attribute is a little bit messy but when using display:none the timepicker is shown on a wrong place
+ writer.append(" style=\"height:1px;width:1px;border:none;background-color:transparent\"");
+ }
if (uiLabelMap != null) {
localizedInputTitle = uiLabelMap.get("CommonFormatDate");
}