Hi
I think I found a small error in the SentinelMenuRenderer Class
The icons are on the same line, but the text doesn't.
Code for the xhtml
----
<ps:menu id="sm_leftmenu">
<p:menuitem id="sm_home" value="Home" outcome="/pages/home" icon="icon-home" />
<p:submenu id="sm_site" label="Site" icon="icon-sitemap">
<p:menuitem id="sm_site_text" value="Site - Text" outcome="/pages/text" icon="icon-doc-text" />
Code for the value:
----
if (value != null) {
writer.writeText(" " + value, "value");
}
Code for the label:
----
if (label != null) {
writer.writeText(label, null);
}
I've replaced this and now the text is in a line
Code for the label:
----
if (label != null) {
writer.writeText(" " + label, null);
}
Regards Michael
Menue: Text after icon not in line
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Thanks a lot for your solution. Fixed for next sentinel release.
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 9 guests