mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 17:30:35 +05:00
When the main window was maximized some dialogs were cropped at the bottom of the screen. It's now fixed.
This commit is contained in:
parent
e02efafc15
commit
92876f6a75
@ -400,6 +400,7 @@ void SMESHGUI::activeStudyChanged( QAD_Desktop* parent )
|
|||||||
bool SMESHGUI::DefineDlgPosition(QWidget* aDlg, int& x, int& y)
|
bool SMESHGUI::DefineDlgPosition(QWidget* aDlg, int& x, int& y)
|
||||||
{
|
{
|
||||||
/* Here the position is on the bottom right corner - 10 */
|
/* Here the position is on the bottom right corner - 10 */
|
||||||
|
aDlg->resize(QSize().expandedTo(aDlg->minimumSizeHint()));
|
||||||
QAD_Desktop* PP = QAD_Application::getDesktop() ;
|
QAD_Desktop* PP = QAD_Application::getDesktop() ;
|
||||||
x = abs ( PP->x() + PP->size().width() - aDlg->size().width() - 10 ) ;
|
x = abs ( PP->x() + PP->size().width() - aDlg->size().width() - 10 ) ;
|
||||||
y = abs ( PP->y() + PP->size().height() - aDlg->size().height() - 10 ) ;
|
y = abs ( PP->y() + PP->size().height() - aDlg->size().height() - 10 ) ;
|
||||||
|
Loading…
Reference in New Issue
Block a user