Skip to content

Commit

Permalink
fix relation editor not taking the whole vertical space in form (#47167)
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 3, 2022
1 parent ed9bb49 commit 2ec2215
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 @@ -245,6 +245,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 2ec2215

Please sign in to comment.