Skip to content

Commit

Permalink
fix relation editor not taking the whole vertical space in form (#47169)
Browse files Browse the repository at this point in the history
Co-authored-by: Denis Rouzaud <denis.rouzaud@gmail.com>
  • Loading branch information
qgis-bot and 3nids committed Feb 3, 2022
1 parent 33fd50e commit 926f9da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/qgsattributeform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1659,6 +1659,9 @@ void QgsAttributeForm::init()
c->addWidget( collapsibleGroupBox );
layout->addLayout( c, row, column, 1, 2 );
column += 2;

// we consider all relation editors should be expanding
addSpacer = false;
}
else
{
Expand Down
2 changes: 2 additions & 0 deletions src/gui/qgsrelationeditorwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ QgsRelationEditorWidget::QgsRelationEditorWidget( const QVariantMap &config, QWi

// Set initial state for add/remove etc. buttons
updateButtons();

setLayout( rootLayout );
}

void QgsRelationEditorWidget::initDualView( QgsVectorLayer *layer, const QgsFeatureRequest &request )
Expand Down

0 comments on commit 926f9da

Please sign in to comment.