From e4f56affd39cbfb9bc6f6d7d49e982a72ba189ac Mon Sep 17 00:00:00 2001 From: Mike Duff Date: Thu, 9 Jan 2014 13:02:08 -0600 Subject: [PATCH] Issue #2633 - Keep graph data visible while resizing. Keep bottom of graph visible. Former-commit-id: 9b5adfaba22f368a9e9f935ebec5126f63a41847 [formerly 87dd0df07a9ef0e7881ed0cf7b8aa1d41f0c9d4d] Former-commit-id: 16a8f16ee4c4358fba2e77f34cf89e2dd9c12622 --- .../viz/datadelivery/bandwidth/ui/BandwidthCanvasComp.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cave/com.raytheon.uf.viz.datadelivery/src/com/raytheon/uf/viz/datadelivery/bandwidth/ui/BandwidthCanvasComp.java b/cave/com.raytheon.uf.viz.datadelivery/src/com/raytheon/uf/viz/datadelivery/bandwidth/ui/BandwidthCanvasComp.java index 118714b9b7..726ef4999d 100644 --- a/cave/com.raytheon.uf.viz.datadelivery/src/com/raytheon/uf/viz/datadelivery/bandwidth/ui/BandwidthCanvasComp.java +++ b/cave/com.raytheon.uf.viz.datadelivery/src/com/raytheon/uf/viz/datadelivery/bandwidth/ui/BandwidthCanvasComp.java @@ -102,7 +102,8 @@ import com.raytheon.uf.viz.datadelivery.utils.DataDeliveryUtils; * Oct 28, 2013 2430 mpduff Add % of bandwidth utilized graph. * Nov 19, 2013 1531 mpduff Made graph resizable. * Nov 25, 2013 2545 mpduff Default to Opsnet if Network not available yet. - * Dec 17, 2013 2633 mpduff Fix redraw problems. + * Dec 17, 2013 2633 mpduff Fix redraw problems.. + * Jan 09, 2013 2633 mpduff On resize keep graph at bottom so data are always visible. * * * @author lvenable @@ -1479,6 +1480,9 @@ public class BandwidthCanvasComp extends Composite implements IDialogClosed, cornerPointOffset.y = 0; } + cornerPointOffset.y = (graphCanvasSettings.getImageHeight() - graphCanvasSettings + .getCanvasHeight()) * -1; + verticalSlider.setSelection(cornerPointOffset.y * -1); horizontalSlider.setSelection(cornerPointOffset.x * -1);