Skip to content
Permalink
Browse files
Check for more not expanding policies
  • Loading branch information
domi4484 authored and github-actions committed Nov 16, 2021
1 parent 035a6f5 commit 4924a59975565ed5e69a18a402a067568135a72c
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/gui/qgsattributeform.cpp
@@ -1641,7 +1641,10 @@ void QgsAttributeForm::init()

label->setBuddy( widgetInfo.widget );

if ( widgetInfo.widget->sizePolicy().verticalPolicy() != QSizePolicy::Fixed )
// If at least one expanding widget is present do not add a spacer
if ( widgetInfo.widget->sizePolicy().verticalPolicy() != QSizePolicy::Fixed
&& widgetInfo.widget->sizePolicy().verticalPolicy() != QSizePolicy::Maximum
&& widgetInfo.widget->sizePolicy().verticalPolicy() != QSizePolicy::Preferred )
addSpacer = false;

if ( !widgetInfo.showLabel )

0 comments on commit 4924a59

Please sign in to comment.