File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -1548,15 +1548,22 @@ QgsAttributeForm::WidgetInfo QgsAttributeForm::createWidgetFromDef( const QgsAtt
15481548 }
15491549 else
15501550 {
1551- QScrollArea *scrollArea = new QScrollArea ( parent );
1551+ myContainer = new QWidget ( );
15521552
1553- myContainer = new QWidget ( scrollArea );
1553+ if ( context.formMode () != QgsAttributeEditorContext::Embed )
1554+ {
1555+ QScrollArea *scrollArea = new QScrollArea ( parent );
15541556
1555- scrollArea->setWidget ( myContainer );
1556- scrollArea->setWidgetResizable ( true );
1557- scrollArea->setFrameShape ( QFrame::NoFrame );
1557+ scrollArea->setWidget ( myContainer );
1558+ scrollArea->setWidgetResizable ( true );
1559+ scrollArea->setFrameShape ( QFrame::NoFrame );
15581560
1559- newWidgetInfo.widget = scrollArea;
1561+ newWidgetInfo.widget = scrollArea;
1562+ }
1563+ else
1564+ {
1565+ newWidgetInfo.widget = myContainer;
1566+ }
15601567 }
15611568
15621569 QGridLayout* gbLayout = new QGridLayout ();
You can’t perform that action at this time.
0 commit comments