Hi,

When inserting a 2 column paragraph on 3.52EE, leaving all parameters blank, I 
would expect each column to take up exactly half of the available space, based 
on the code:


<c:if test="${empty leftColumnWidth}">
      <c:choose>
            <c:when test="${(param.columnWidth-spaceWidth)%2 == 1}">
                  <c:set var="leftColumnWidth">
                  <c:set var="spaceWidth">24</c:set>
                  <fmt:formatNumber value="${(param.columnWidth-spaceWidth)/2}" 
maxFractionDigits="0"/>
                  </c:set>                
            </c:when>
                        
       <c:otherwise>

       <c:set var="leftColumnWidth">
       <fmt:formatNumber value="${(param.columnWidth-spaceWidth)/2}" 
maxFractionDigits="0"/>
                  </c:set>
            </c:otherwise>
       </c:choose>
</c:if>
                        
      <c:set var="rightColumnWidth">
                  <fmt:formatNumber 
value="${param.columnWidth-leftColumnWidth-spaceWidth}" maxFractionDigits="0"/> 
      </c:set>


However, they do not, and if you put more content in one paragraph then it 
takes up more space than the other. This is as there is no width being provided 
for the table, so something is going wrong with param.columnWidth

This worked fine in 3.01EE. Have I forgotten something stupid, or is there are 
problem with what magnolia is doing?

Cheers,

Chris


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to