mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Fix generic plot missing top label on axis
.. when working out the hover area. this is because the first label is sometimes aligned above the plot area. so we look a little higher.
This commit is contained in:
@@ -271,11 +271,11 @@ GenericPlot::plotAreaChanged()
|
||||
QRectF zone;
|
||||
switch (sides[i]) {
|
||||
case Qt::AlignLeft:
|
||||
zone =QRectF(QPointF(0, 0),
|
||||
zone =QRectF(QPointF(0, -10),
|
||||
QPointF(qchart->plotArea().x(), qchart->scene()->height()));
|
||||
break;
|
||||
case Qt::AlignRight:
|
||||
zone =QRectF(QPointF(qchart->plotArea().x()+qchart->plotArea().width(), 0),
|
||||
zone =QRectF(QPointF(qchart->plotArea().x()+qchart->plotArea().width(), -10),
|
||||
QPointF(qchart->scene()->width(), qchart->scene()->height()));
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user