Skip to content

Commit

Permalink
Fix user input widget sometimes hidden below canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored and 3nids committed Jan 22, 2018
1 parent cc18918 commit 5a80ec5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/qgsuserinputwidget.cpp
Expand Up @@ -40,7 +40,7 @@ QgsUserInputWidget::QgsUserInputWidget( QWidget *parent )
topLayout->addWidget( f );
setLayout( topLayout );

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

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

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

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

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

Expand Down

0 comments on commit 5a80ec5

Please sign in to comment.