Skip to content

Commit

Permalink
Fix margins on photo and web view edit widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 6, 2016
1 parent 76282d5 commit ece46d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/editorwidgets/qgsphotowidgetwrapper.cpp
Expand Up @@ -170,6 +170,8 @@ QWidget* QgsPhotoWidgetWrapper::createWidget( QWidget* parent )
layout->addWidget( label, 0, 0, 1, 2 );
layout->addWidget( le, 1, 0 );
layout->addWidget( pb, 1, 1 );
layout->setMargin( 0 );
layout->setContentsMargins( 0, 0, 0, 0 );

container->setLayout( layout );

Expand Down
2 changes: 2 additions & 0 deletions src/gui/editorwidgets/qgswebviewwidgetwrapper.cpp
Expand Up @@ -81,6 +81,8 @@ QWidget* QgsWebViewWidgetWrapper::createWidget( QWidget* parent )
layout->addWidget( webView, 0, 0, 1, 2 );
layout->addWidget( le, 1, 0 );
layout->addWidget( pb, 1, 1 );
layout->setMargin( 0 );
layout->setContentsMargins( 0, 0, 0, 0 );

container->setLayout( layout );

Expand Down

0 comments on commit ece46d1

Please sign in to comment.