From 434926a674147c49fa35cf7b577fc20f61f46c6f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Genevi=C3=A8ve=20Bastien?= Date: Mon, 13 Mar 2017 11:48:10 -0400 Subject: [PATCH] charts: Update label display when populating (bug 517600) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit If labels are long, they need to be truncated to avoid taking too much real estate in the chart. But the resize was called only when the control was resized and not when being populated. Change-Id: I3f25e4ba065678d0e7697702d7083e0a4ace62cb Signed-off-by: Geneviève Bastien Reviewed-on: https://git.eclipse.org/r/92952 Reviewed-by: Matthew Khouzam Reviewed-by: Hudson CI --- .../internal/tmf/chart/ui/swtchart/SwtXYChartViewer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/tmf/org.eclipse.tracecompass.tmf.chart.ui/src/org/eclipse/tracecompass/internal/tmf/chart/ui/swtchart/SwtXYChartViewer.java b/tmf/org.eclipse.tracecompass.tmf.chart.ui/src/org/eclipse/tracecompass/internal/tmf/chart/ui/swtchart/SwtXYChartViewer.java index 27d1b9d3d0..a6dd970ace 100644 --- a/tmf/org.eclipse.tracecompass.tmf.chart.ui/src/org/eclipse/tracecompass/internal/tmf/chart/ui/swtchart/SwtXYChartViewer.java +++ b/tmf/org.eclipse.tracecompass.tmf.chart.ui/src/org/eclipse/tracecompass/internal/tmf/chart/ui/swtchart/SwtXYChartViewer.java @@ -295,6 +295,7 @@ public abstract class SwtXYChartViewer extends TmfViewer implements IChartViewer /* Refresh the titles to fit the current chart size */ refreshDisplayTitles(); + refreshDisplayLabels(); } /** -- 2.34.1