[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:
luz paz
2022-02-20 07:47:15 -05:00
committed by Chris Hennes
parent b2f9713732
commit 79d2a192fc

View File

@@ -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);