Mercurial > dive4elements > river
changeset 1484:cb5ab84505b7
Set the chart export size to -1, so that the FLYS server is able to distinguish between an export and the query to display a chart.
flys-client/trunk@3548 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 27 Dec 2011 11:13:05 +0000 |
parents | 843eed27390d |
children | 00e429e6420c |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Tue Dec 27 10:09:10 2011 +0000 +++ b/flys-client/ChangeLog Tue Dec 27 11:13:05 2011 +0000 @@ -1,3 +1,10 @@ +2011-12-27 Ingo Weinzierl <ingo@intevation.de> + + * src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java: + Set widt=-1 and height=-1 for exports. This allows the server to + distinguish between a chart export (as PNG, PDF and SVG) and the display + in the UI. + 2011-12-27 Ingo Weinzierl <ingo@intevation.de> * src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties,
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java Tue Dec 27 10:09:10 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java Tue Dec 27 11:13:05 2011 +0000 @@ -77,7 +77,7 @@ downloadPNG = new ImgLink( baseUrl + MSG.downloadPNG(), - chartTab.getExportUrl(1280, 1024, "png"), + chartTab.getExportUrl(-1, -1, "png"), 20, 20);