Salome HOME
Fix for crash on multi-selection of group-vertices on imported body with Shift-key...
[modules/shaper.git] / src / ModuleBase / ModuleBase_PageGroupBox.cpp
index 1043a02fb35623f181835357bec29666f381fc88..1631a8726977793d1572ab557a586a6466d98953 100644 (file)
@@ -23,11 +23,17 @@ ModuleBase_PageGroupBox::~ModuleBase_PageGroupBox()
 {
 }
 
+void ModuleBase_PageGroupBox::addPageStretch()
+{
+}
+
 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)
@@ -41,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()