mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix to allow IE6/7 to render drop-down menu DIVs with full width
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3151 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -81,7 +81,9 @@ public class UIMenu extends SelfRenderingComponent
|
|||||||
// output the hidden DIV section to contain the menu item table
|
// output the hidden DIV section to contain the menu item table
|
||||||
out.write("<br><div id='");
|
out.write("<br><div id='");
|
||||||
out.write(menuId);
|
out.write(menuId);
|
||||||
out.write("' style=\"position:absolute;display:none;padding-left:2px;\">");
|
// NOTE: the use of "*width:0px" is an IE6/7 specific hack to ensure that the CSS is processed
|
||||||
|
// only by IE (which needs the width value) and _not_ FireFox which doesn't...!
|
||||||
|
out.write("' style=\"position:absolute;display:none;padding-left:2px;*width:0px\">");
|
||||||
out.write("<table border=0 cellpadding=0");
|
out.write("<table border=0 cellpadding=0");
|
||||||
outputAttribute(out, getAttributes().get("itemSpacing"), "cellspacing");
|
outputAttribute(out, getAttributes().get("itemSpacing"), "cellspacing");
|
||||||
outputAttribute(out, getAttributes().get("menuStyle"), "style");
|
outputAttribute(out, getAttributes().get("menuStyle"), "style");
|
||||||
|
Reference in New Issue
Block a user