mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
CP Chart - Reposition model helper when off window
This is already fixed when it is out to the right, but still can happen to the left. Fixes #3995
This commit is contained in:
@@ -1365,7 +1365,8 @@ CriticalPowerWindow::event(QEvent *event)
|
||||
}
|
||||
|
||||
// if off the screen move on screen
|
||||
if (helperWidget()->geometry().x() > geometry().width()) {
|
||||
if (helperWidget()->geometry().x() > geometry().width() ||
|
||||
helperWidget()->geometry().x() < geometry().x()) {
|
||||
helperWidget()->move(mainWidget()->geometry().width()-(275*dpiXFactor), 50*dpiYFactor);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user