Skip to content
Permalink
Browse files

Fix user input widget sometimes hidden below canvas

  • Loading branch information
nyalldawson authored and 3nids committed Jan 21, 2018
1 parent cc18918 commit 5a80ec5c795823753221d9c33d64e85c3e46c4ba
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/gui/qgsuserinputwidget.cpp
@@ -40,7 +40,7 @@ QgsUserInputWidget::QgsUserInputWidget( QWidget *parent )
topLayout->addWidget( f );
setLayout( topLayout );

setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding );
hide();
}

@@ -61,6 +61,7 @@ void QgsUserInputWidget::addUserInputWidget( QWidget *widget )
mWidgetList.insert( widget, line );

show();
raise();
adjustSize();
}

@@ -85,7 +86,7 @@ void QgsUserInputWidget::widgetDestroyed( QObject *obj )
}
}

void QgsUserInputWidget::setLayoutDirection( QBoxLayout::Direction direction)
void QgsUserInputWidget::setLayoutDirection( QBoxLayout::Direction direction )
{
mLayout->setDirection( direction );

0 comments on commit 5a80ec5

Please sign in to comment.
You can’t perform that action at this time.