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:
Mark Liversedge
2020-03-09 08:35:11 +00:00
parent 67801f4ce7
commit b8a6fd40e3

View File

@@ -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: