svn commit: r1851140 - /ofbiz/ofbiz-plugins/trunk/ecommerce/widget/CommonScreens.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1851140 - /ofbiz/ofbiz-plugins/trunk/ecommerce/widget/CommonScreens.xml

Deepak Dixit-5
Author: deepak
Date: Sat Jan 12 06:46:53 2019
New Revision: 1851140

URL: http://svn.apache.org/viewvc?rev=1851140&view=rev
Log:
Fixed:List Request page seems distorted of ecommerce component
(OFBIZ-10621)
Thanks  Garima jain for reporting the issue.
Set the col class based on right/left screen inclusion

Modified:
    ofbiz/ofbiz-plugins/trunk/ecommerce/widget/CommonScreens.xml

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/widget/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/widget/CommonScreens.xml?rev=1851140&r1=1851139&r2=1851140&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/widget/CommonScreens.xml (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/widget/CommonScreens.xml Sat Jan 12 06:46:53 2019
@@ -49,6 +49,11 @@ under the License.
                     <field-map field-name="webSiteId"/>
                 </entity-and>
                 <set field="layoutSettings.javaScripts[]" value="/common/js/util/miscAjaxFunctions.js" global="true" />
+                <set field="bodyStyle" value="${groovy:
+                        if(sections?.get(&quot;left-column&quot;) &amp;&amp; sections?.get(&quot;right-column&quot;)) &quot;col-lg-6&quot;
+                        else if (sections?.get(&quot;left-column&quot;) || sections?.get(&quot;right-column&quot;)) &quot;col-lg-9&quot;
+                        else &quot;col-lg-12&quot;
+                }"/>
             </actions>
             <widgets>
                 <section>
@@ -74,7 +79,7 @@ under the License.
                                         </container>
                                     </widgets>
                                 </section>
-                                <container id="div3" style="col-lg-6 order-lg-2 order-1">
+                                <container id="div3" style="${bodyStyle} order-lg-2 order-1">
                                 <!-- render messages -->
                                     <platform-specific><html><html-template location="component://common-theme/template/includes/Messages.ftl"/></html></platform-specific>
                                     <decorator-section-include name="body"/>