From: jrt Date: Mon, 20 Oct 2003 16:26:06 +0000 (+0000) Subject: When the main window was maximized some dialogs were cropped at the bottom of the... X-Git-Tag: V1_3_0_b1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=92876f6a7544e5a450b8123ed2c1a44bda874472;p=modules%2Fsmesh.git When the main window was maximized some dialogs were cropped at the bottom of the screen. It's now fixed. --- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index dcb6d7c98..af49173b9 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -400,6 +400,7 @@ void SMESHGUI::activeStudyChanged( QAD_Desktop* parent ) bool SMESHGUI::DefineDlgPosition(QWidget* aDlg, int& x, int& y) { /* Here the position is on the bottom right corner - 10 */ + aDlg->resize(QSize().expandedTo(aDlg->minimumSizeHint())); QAD_Desktop* PP = QAD_Application::getDesktop() ; x = abs ( PP->x() + PP->size().width() - aDlg->size().width() - 10 ) ; y = abs ( PP->y() + PP->size().height() - aDlg->size().height() - 10 ) ;