tmf: Fix calculation of sash weights in performAlign
authorPatrick Tasse <patrick.tasse@gmail.com>
Wed, 13 May 2015 19:44:13 +0000 (15:44 -0400)
committerPatrick Tasse <patrick.tasse@gmail.com>
Fri, 15 May 2015 15:03:59 +0000 (11:03 -0400)
commitc34ab48af76eab013df393cbe2e9fd26d8035179
tree03a2cb1993461d20d5302178d8180f4c4e636258
parent637a401924f8951d7f5dc51ee606ac4980582ad1
tmf: Fix calculation of sash weights in performAlign

This ensures that the sash width is taken into account when calculating
the sash weights when trying to align to a specific offset.

There can still be some drifting by 1 pixel, but this is caused by
integer trimming in the computations inside SashForm and SashLayout.

Change-Id: I742dc99e90e3eb4c9f95b1bac3da286f3187af3e
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/47884
Reviewed-by: Hudson CI
org.eclipse.tracecompass.analysis.os.linux.ui/src/org/eclipse/tracecompass/analysis/os/linux/ui/views/cpuusage/CpuUsageView.java
org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/views/TmfChartView.java
org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/views/histogram/HistogramView.java
org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/TimeGraphCombo.java
This page took 0.038812 seconds and 5 git commands to generate.