Skip to content

Commit

Permalink
fix relation editor not taking the whole vertical space in form
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored and github-actions[bot] committed Feb 3, 2022
1 parent 33fd50e commit 81772e9
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
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
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 81772e9

Please sign in to comment.