Author: pgil Date: Sat Mar 19 08:08:50 2016 New Revision: 1735738 URL: http://svn.apache.org/viewvc?rev=1735738&view=rev Log: OFBIZ-6927
Add width and height attributes retrieval in renderLink method in MacroMenuRenderer. Thanks Pierre for the report. Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/renderer/macro/MacroMenuRenderer.java Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/renderer/macro/MacroMenuRenderer.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/renderer/macro/MacroMenuRenderer.java?rev=1735738&r1=1735737&r2=1735738&view=diff ============================================================================== --- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/renderer/macro/MacroMenuRenderer.java (original) +++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/renderer/macro/MacroMenuRenderer.java Sat Mar 19 08:08:50 2016 @@ -204,6 +204,8 @@ public class MacroMenuRenderer implement parameters.put("style", link.getStyle(context)); parameters.put("name", link.getName(context)); parameters.put("text", link.getText(context)); + parameters.put("height", link.getHeight()); + parameters.put("width", link.getWidth()); parameters.put("targetWindow", link.getTargetWindow(context)); StringBuffer uniqueItemName = new StringBuffer(menuItem.getModelMenu().getName()); uniqueItemName.append("_").append(menuItem.getName()).append("_LF_").append(UtilMisc.<String> addToBigDecimalInMap(context, "menuUniqueItemIndex", BigDecimal.ONE));