From 00d9518e314e7ed291bf0b8dd7f37c9e8bca5f14 Mon Sep 17 00:00:00 2001 From: geopossachs <10324450+geopossachs@users.noreply.github.com> Date: Wed, 3 Jun 2020 08:33:51 +0200 Subject: [PATCH] #1050 set fixed css style for navbar brand image --- .../java/net/bootsfaces/component/navBar/NavBarRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/bootsfaces/component/navBar/NavBarRenderer.java b/src/main/java/net/bootsfaces/component/navBar/NavBarRenderer.java index f843649cc..8cf44928c 100644 --- a/src/main/java/net/bootsfaces/component/navBar/NavBarRenderer.java +++ b/src/main/java/net/bootsfaces/component/navBar/NavBarRenderer.java @@ -191,7 +191,7 @@ public void encodeBegin(FacesContext context, UIComponent component) throws IOEx rw.startElement("img", navBar); rw.writeAttribute("alt", altText, "alt"); rw.writeAttribute("src", brandImg, "src"); - writeAttribute(rw, "style", navBar.getBrandImgStyle()); + writeAttribute(rw, "style", "vertical-align: top; " + navBar.getBrandImgStyle()); writeAttribute(rw, "class", navBar.getBrandImgStyleClass()); rw.endElement("img"); }