Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSHeader.java @ 66:a361ce81abcf
Customized style for header and mainmenu.
flys-client/trunk@1557 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 24 Mar 2011 15:48:13 +0000 |
parents | e4155a6833a9 |
children | b92281182c6b |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSHeader.java Wed Mar 23 11:19:18 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSHeader.java Thu Mar 24 15:48:13 2011 +0000 @@ -51,11 +51,12 @@ Img bfg = new Img( bfgRes.getURL(), - calcWidth(bfgRes, IMG_HEIGHT), - IMG_HEIGHT); + calcWidth(bfgRes, HEIGHT), + HEIGHT); Label fullname = new Label(MESSAGES.fullname()); fullname.setHeight(HEIGHT - IMG_HEIGHT); + fullname.setStyleName ("fontNormalMid"); VLayout left = new VLayout(); left.addMember(flys); @@ -83,8 +84,8 @@ int widthOrig = res.getWidth(); int heightOrig = res.getHeight(); - double factor = heightOrig / height; - double width = widthOrig / factor; + double factor = (double)heightOrig / height; + double width = (double)widthOrig / factor; return (int) width * 10 / 10; }