menu HTML layout fix
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sun, 21 Apr 2013 16:06:27 +0000 (19:06 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sun, 21 Apr 2013 16:06:27 +0000 (19:06 +0300)
src/main/java/eu/svjatoslav/commons/network/navigation/Navigation.java

index 3a07bbd..42720c9 100755 (executable)
@@ -40,7 +40,8 @@ public class Navigation {
 
                result.append("<div class=\"navigationMenu\">");
 
-               for (final NavigationItem item : rootNavigationItem.getSubElements()) {
+               for (final NavigationItem item : getRootNavigationItem()
+                               .getSubElements()) {
 
                        if (item == selectedItem)
                                result.append("<a class=\"menuItemSelected\" href=\""
@@ -49,7 +50,7 @@ public class Navigation {
                                result.append("<a class=\"menuItem\" href=\"" + item.getLink()
                                                + "\">");
 
-                       result.append(item.getTitle());
+                       result.append("<div>" + item.getTitle() + "</div>");
                        result.append("</a>");
                }