charts: Update label display when populating (bug 517600)
authorGeneviève Bastien <gbastien+lttng@versatic.net>
Mon, 13 Mar 2017 15:48:10 +0000 (11:48 -0400)
committerGenevieve Bastien <gbastien+lttng@versatic.net>
Thu, 1 Jun 2017 13:22:49 +0000 (09:22 -0400)
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 <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/92952
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
tmf/org.eclipse.tracecompass.tmf.chart.ui/src/org/eclipse/tracecompass/internal/tmf/chart/ui/swtchart/SwtXYChartViewer.java

index 27d1b9d3d0b9baef78d5a3e3ce85bcc9230f9555..a6dd970acef3d41e8b5b22f119f13ef62bcb7c0a 100644 (file)
@@ -295,6 +295,7 @@ public abstract class SwtXYChartViewer extends TmfViewer implements IChartViewer
 
         /* Refresh the titles to fit the current chart size */
         refreshDisplayTitles();
+        refreshDisplayLabels();
     }
 
     /**
This page took 0.025082 seconds and 5 git commands to generate.