diff flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSHeader.java @ 1399:748e7c828d03

Issue312. Moved images and get image urls from constants to completly support IE7. flys-client/trunk@3284 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 17 Nov 2011 14:10:51 +0000
parents b92281182c6b
children 047a44270348
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSHeader.java	Mon Nov 14 13:19:02 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSHeader.java	Thu Nov 17 14:10:51 2011 +0000
@@ -18,9 +18,6 @@
  */
 public class FLYSHeader extends HLayout {
 
-    /** The interface that provides the image resources. */
-    private FLYSImages IMAGES = GWT.create(FLYSImages.class);
-
     /** The interface that provides the message resources. */
     private FLYSConstants MESSAGES = GWT.create(FLYSConstants.class);
 
@@ -41,17 +38,16 @@
         setLayoutLeftMargin(5);
         setLayoutRightMargin(5);
 
-        ImageResource flysRes = IMAGES.logoFlys();
-        ImageResource bfgRes  = IMAGES.logoBfg();
+        String baseUrl = GWT.getHostPageBaseURL();
 
         Img flys = new Img(
-            flysRes.getURL(),
-            calcWidth(flysRes,IMG_HEIGHT),
+            baseUrl + MESSAGES.flysLogo(),
+            50,
             IMG_HEIGHT);
 
         Img bfg  = new Img(
-            bfgRes.getURL(),
-            calcWidth(bfgRes, HEIGHT),
+            baseUrl + MESSAGES.bfgLogo(),
+            112,
             HEIGHT);
 
         Label fullname = new Label(MESSAGES.fullname());

http://dive4elements.wald.intevation.org