Salome HOME
Bugfixes for focus processing in the property panel
[modules/shaper.git] / src / ModuleBase / ModuleBase_PageGroupBox.cpp
index f16e4d728b2ef247f4afeaf3140dad314b8003bf..1631a8726977793d1572ab557a586a6466d98953 100644 (file)
@@ -32,6 +32,8 @@ void ModuleBase_PageGroupBox::placeModelWidget(ModuleBase_ModelWidget* theWidget
   const int kCol = 0;
   const int kRow = myMainLayout->count();
   myMainLayout->addWidget(theWidget, kRow, kCol, Qt::AlignTop | Qt::AlignLeft);
+  myMainLayout->setRowStretch(kRow, 0);
+
 }
 
 void ModuleBase_PageGroupBox::placePageWidget(ModuleBase_PageBase* theWidget)
@@ -45,7 +47,8 @@ void ModuleBase_PageGroupBox::placePageWidget(ModuleBase_PageBase* theWidget)
   }
   const int kCol = 0;
   const int kRow = myMainLayout->count();
-  myMainLayout->addWidget(aWidget, kRow, kCol, Qt::AlignTop | Qt::AlignLeft);
+  myMainLayout->addWidget(aWidget, kRow, kCol);
+  myMainLayout->setRowStretch(kRow, 0);
 }
 
 QLayout* ModuleBase_PageGroupBox::pageLayout()