Menue: Text after icon not in line

Locked
michael.spaltenstein
Posts: 2
Joined: 28 Aug 2015, 09:46

15 Apr 2016, 15:07

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

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

17 Apr 2016, 19:38

Thanks a lot for your solution. Fixed for next sentinel release.

Locked

Return to “Sentinel”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests