Skip to content
Permalink
Browse files

Better initial placement of new map views

  • Loading branch information
nyalldawson committed Mar 13, 2017
1 parent 2694b73 commit 48df5dd1cf54352c41ca81d99068aa3cf4dc68ac
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/qgisapp.cpp
@@ -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
{

0 comments on commit 48df5dd

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