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 @@ -1551,15 +1551,22 @@ QgsAttributeForm::WidgetInfo QgsAttributeForm::createWidgetFromDef( const QgsAtt
1551
1551
}
1552
1552
else
1553
1553
{
1554
- QScrollArea *scrollArea = new QScrollArea ( parent );
1554
+ myContainer = new QWidget ( );
1555
1555
1556
- myContainer = new QWidget ( scrollArea );
1556
+ if ( context.formMode () != QgsAttributeEditorContext::Embed )
1557
+ {
1558
+ QScrollArea *scrollArea = new QScrollArea ( parent );
1557
1559
1558
- scrollArea->setWidget ( myContainer );
1559
- scrollArea->setWidgetResizable ( true );
1560
- scrollArea->setFrameShape ( QFrame::NoFrame );
1560
+ scrollArea->setWidget ( myContainer );
1561
+ scrollArea->setWidgetResizable ( true );
1562
+ scrollArea->setFrameShape ( QFrame::NoFrame );
1561
1563
1562
- newWidgetInfo.widget = scrollArea;
1564
+ newWidgetInfo.widget = scrollArea;
1565
+ }
1566
+ else
1567
+ {
1568
+ newWidgetInfo.widget = myContainer;
1569
+ }
1563
1570
}
1564
1571
1565
1572
QGridLayout* gbLayout = new QGridLayout ();
You can’t perform that action at this time.
0 commit comments