diff --git a/logPlus/mainwindowcurve.cpp b/logPlus/mainwindowcurve.cpp index 5a0003f..c3e7ab5 100644 --- a/logPlus/mainwindowcurve.cpp +++ b/logPlus/mainwindowcurve.cpp @@ -5332,8 +5332,9 @@ void MainWindowCurve::s_changeScrollBar(QString strUuid) return; } - int iCurValue = ui->verticalScrollBar->value(); - vertScrollBarChanged(iCurValue); + ui->verticalScrollBar->setValue(-m_iY2);//-m_iY2 - //ui->verticalScrollBar->setValue(iCurValue+1);//-m_iY2 +// int iCurValue = ui->verticalScrollBar->value(); +// vertScrollBarChanged(iCurValue); +// //ui->verticalScrollBar->setValue(iCurValue+1);//-m_iY2 } diff --git a/logPlus/qmycustomplot.cpp b/logPlus/qmycustomplot.cpp index b7b1463..cff22a6 100644 --- a/logPlus/qmycustomplot.cpp +++ b/logPlus/qmycustomplot.cpp @@ -12489,7 +12489,8 @@ void QMyCustomPlot::vertScrollBarChanged_setGeometry(QString strUuid, double val double dDelta = value; //- upper double dPercent = dDelta / (low-upper); - setGeometry(0, -(dPercent*geoRect.height()), geoRect.width(), geoRect.height()); + move(geoRect.x(), -(dPercent*geoRect.height())); + //setGeometry(geoRect.x(), -(dPercent*geoRect.height()), geoRect.width(), geoRect.height()); return; }