Skip to content

Commit

Permalink
Allow a second logo in Console home page
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Mezzasalma <claudio.mezzasalma@eurotech.com>
  • Loading branch information
Claudio Mezzasalma committed Oct 25, 2017
1 parent f4f5a58 commit 16a86a2
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,19 @@ private void renderLoginDialog() {
kapuaLogo.setStyleName("kapuaLogo-ie8");
}

TableLayout layout = new TableLayout(1);
SimplePanel eclipseLogo = new SimplePanel();
if (!UserAgentUtils.isIE() || UserAgentUtils.getIEDocumentMode() > 8) {
eclipseLogo.setStyleName("eclipseLogo");
} else {
eclipseLogo.setStyleName("eclipseLogo-ie8");
}

TableLayout layout = new TableLayout(2);
layout.setWidth("100%");

LayoutContainer lcHeader = new LayoutContainer(layout);
lcHeader.add(kapuaLogo, new TableData(Style.HorizontalAlignment.LEFT, Style.VerticalAlignment.BOTTOM));
lcHeader.add(eclipseLogo, new TableData(Style.HorizontalAlignment.RIGHT, Style.VerticalAlignment.BOTTOM));
if (!UserAgentUtils.isIE() || UserAgentUtils.getIEDocumentMode() > 8) {
lcHeader.setStyleName("loginHeader");
} else {
Expand Down

0 comments on commit 16a86a2

Please sign in to comment.