Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Better initial placement of new map views
  • Loading branch information
nyalldawson committed Mar 13, 2017
1 parent 2694b73 commit 48df5dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -3132,7 +3132,8 @@ QgsMapCanvas *QgisApp::createNewMapCanvas( const QString &name, bool isFloating,
mapCanvasWidget->setFloating( isFloating );
if ( dockGeometry.isEmpty() )
{
mapCanvasWidget->resize( 400, 400 );
// try to guess a nice initial placement for view - about 3/4 along, half way down
mapCanvasWidget->setGeometry( QRect( rect().width() * 0.75, rect().height() * 0.5, 400, 400 ) );
}
else
{
Expand Down

0 comments on commit 48df5dd

Please sign in to comment.