Author: jleroux
Date: Tue Aug 16 06:35:13 2011
New Revision: 1158126
URL:
http://svn.apache.org/viewvc?rev=1158126&view=revLog:
A patch from Christian Fischer "Layout in comparison window is wrong"
https://issues.apache.org/jira/browse/OFBIZ-4339The table in the comparison window doesn't scale right with the product description.
Modified:
ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/compareproducts.ftl
Modified: ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/compareproducts.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/compareproducts.ftl?rev=1158126&r1=1158125&r2=1158126&view=diff==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/compareproducts.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/compareproducts.ftl Tue Aug 16 06:35:13 2011
@@ -21,6 +21,7 @@ under the License.
<tr>
<td> </td>
<#list compareList as product>
+ <#assign tdWidth = 100/compareList?size />
<#assign productData = productDataMap[product.productId]/>
<#assign productContentWrapper = productData.productContentWrapper/>
<#assign price = productData.priceMap/>
@@ -29,7 +30,7 @@ under the License.
<#if smallImageUrl!?length == 0>
<#assign smallImageUrl = "/images/defaultImage.jpg"/>
</#if>
- <td>
+ <td style="width:${tdWidth?c}%;">
<img src="<@ofbizContentUrl>${contentPathPrefix?if_exists}${smallImageUrl}</@ofbizContentUrl>" alt="Small Image"/><br />
${productContentWrapper.get("PRODUCT_NAME")}<br />
<#if totalPrice?exists>