# HG changeset patch # User Björn Ricks # Date 1351521829 -3600 # Node ID 4c2005e6ac6581c708842878db621b1a045a6e99 # Parent 8c51c43e59caa0fb40b78f574102f7c5360934bf Close the gauge panel tree folds if a csv result should be shown Fixes flys/issue922 (W-INFO / Pegel-Info-Modul / Verhalten nach Berechnungsende) diff -r 8c51c43e59ca -r 4c2005e6ac65 flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java Mon Oct 29 15:24:32 2012 +0100 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java Mon Oct 29 15:43:49 2012 +0100 @@ -552,6 +552,7 @@ if (export.getFacet("csv") != null) { hasCSV = true; + parameterList.contractInfoPanel(); } } } diff -r 8c51c43e59ca -r 4c2005e6ac65 flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java Mon Oct 29 15:24:32 2012 +0100 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java Mon Oct 29 15:43:49 2012 +0100 @@ -1002,5 +1002,15 @@ } } + /** + * Allow to close all folds of the info panel. + * This is necessary e.g. if a csv result should be shown. + */ + public void contractInfoPanel() { + if (infoPanel != null) { + infoPanel.contract(); + } + } + } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :