Commit 0187e086ebf884105f90457659fe79a05cbf45cc
1 parent
8d9b1b37
Added style="display:none" to generated container of dock component.
Showing
2 changed files
with
6 additions
and
1 deletions
@@ -12,6 +12,9 @@ | @@ -12,6 +12,9 @@ | ||
12 | with the cursor, and usually perform some action when clicked. This plugin mimics that behaviour by | 12 | with the cursor, and usually perform some action when clicked. This plugin mimics that behaviour by |
13 | transforming a contiguous set of HTML images into an expanding Dock, vertical or horizontal, with or without | 13 | transforming a contiguous set of HTML images into an expanding Dock, vertical or horizontal, with or without |
14 | labels. | 14 | labels. |
15 | + | ||
16 | + Note that this component will not work if it's children render anything else except "<script>", "<a>" | ||
17 | + or "<img>". | ||
15 | </description> | 18 | </description> |
16 | <renderer generate="false" override="true"> | 19 | <renderer generate="false" override="true"> |
17 | <name>org.richfaces.DockRenderer</name> | 20 | <name>org.richfaces.DockRenderer</name> |
@@ -100,7 +100,9 @@ public class DockRenderer extends HeaderResourcesRendererBase { | @@ -100,7 +100,9 @@ public class DockRenderer extends HeaderResourcesRendererBase { | ||
100 | Object styleClass = component.getAttributes().get("styleClass"); | 100 | Object styleClass = component.getAttributes().get("styleClass"); |
101 | styleClass = styleClass == null ? "" : " " + styleClass.toString(); | 101 | styleClass = styleClass == null ? "" : " " + styleClass.toString(); |
102 | writer.writeAttribute(HTML.class_ATTRIBUTE, "rf-dk" + styleClass, HTML.class_ATTRIBUTE); | 102 | writer.writeAttribute(HTML.class_ATTRIBUTE, "rf-dk" + styleClass, HTML.class_ATTRIBUTE); |
103 | - writer.writeAttribute(HTML.style_ATTRIBUTE, component.getAttributes().get("style"), HTML.style_ATTRIBUTE); | 103 | + Object style = component.getAttributes().get("style"); |
104 | + style = style == null ? "" : style.toString(); | ||
105 | + writer.writeAttribute(HTML.style_ATTRIBUTE, "display:none;" + style, HTML.style_ATTRIBUTE); | ||
104 | } | 106 | } |
105 | 107 | ||
106 | @Override | 108 | @Override |
Please
register
or
login
to post a comment