[GUI] Adjust Preferences dialog display position to be fully visible.
based on [commit](b1effe2250)
forum thread [thread](https://forum.freecadweb.org/viewtopic.php?f=8&t=66410)
This PR replaces #6398
This commit is contained in:
@@ -432,6 +432,8 @@ void DlgPreferencesImp::resizeEvent(QResizeEvent* ev)
|
||||
Q_ARG(int, newWidth),
|
||||
Q_ARG(int, newHeight));
|
||||
}
|
||||
QPoint center = rect.center();
|
||||
move(center.x() - width() * 0.5, 10);
|
||||
}
|
||||
}
|
||||
QDialog::resizeEvent(ev);
|
||||
|
||||
Reference in New Issue
Block a user