Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/LoadingPanel.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 | ea9a73782de4 |
children | 047a44270348 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/LoadingPanel.java Mon Nov 14 13:19:02 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/LoadingPanel.java Thu Nov 17 14:10:51 2011 +0000 @@ -31,7 +31,6 @@ public static final DescribeArtifactServiceAsync describe = GWT.create(DescribeArtifactService.class); - private FLYSImages IMAGES = GWT.create(FLYSImages.class); private FLYSConstants MSG = GWT.create(FLYSConstants.class); @@ -81,6 +80,9 @@ protected VLayout createDialog() { + + String baseUrl = GWT.getHostPageBaseURL(); + title.setStyleName("loading-title"); title.setHeight(25); title.setWidth100(); @@ -90,8 +92,7 @@ msg.setWidth100(); msg.setHeight(100); - ImageResource res = IMAGES.loading(); - Img img = new Img(res.getURL(), 25, 25); + Img img = new Img(baseUrl + MSG.loadingImg(), 25, 25); VLayout box = new VLayout(); box.setStyleName("loading-box");