You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2014/01/31 21:06:43 UTC

svn commit: r1563238 - /ofbiz/trunk/framework/common/webcommon/includes/htmlTemplate.ftl

Author: jleroux
Date: Fri Jan 31 20:06:42 2014
New Revision: 1563238

URL: http://svn.apache.org/r1563238
Log:
Workaround for "Lookups (layered mode) and dropdown menus overlap" (in BizznessTime Theme) https://issues.apache.org/jira/browse/OFBIZ-5519

A good example is in order creation page, open the customer lookup and then try to close it.

I think we should not fiddle with the theme, there is a faster and easier solution: center all lookups in the screen by default. It will not fix but hide the issue for now. Anyway the awful dropdown menu behaviour must be fixed and i will open another Jira for that.

You may ask why I'm concerned with a theme which is no longer bundled in future releases? It's because some custom projects still use it...

Modified:
    ofbiz/trunk/framework/common/webcommon/includes/htmlTemplate.ftl

Modified: ofbiz/trunk/framework/common/webcommon/includes/htmlTemplate.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/includes/htmlTemplate.ftl?rev=1563238&r1=1563237&r2=1563238&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/webcommon/includes/htmlTemplate.ftl (original)
+++ ofbiz/trunk/framework/common/webcommon/includes/htmlTemplate.ftl Fri Jan 31 20:06:42 2014
@@ -33,7 +33,10 @@ under the License.
         <#local readonly = true/>
     <#else>
         <#local readonly = false />
-    </#if>    
+    </#if>
+    <#if userPreferences.VISUAL_THEME == "BIZZNESS_TIME">
+        <#local position = "center" />
+    </#if>
     <@renderLookupField name formName fieldFormName className alert value size maxlength id event action readonly autocomplete descriptionFieldName targetParameterIter imgSrc ajaxUrl ajaxEnabled presentation width height position fadeBackground clearText showDescription initiallyCollapsed/>
 </#macro>