Skip to content

Commit 48df5dd

Browse files
committedMar 13, 2017
Better initial placement of new map views
1 parent 2694b73 commit 48df5dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3132,7 +3132,8 @@ QgsMapCanvas *QgisApp::createNewMapCanvas( const QString &name, bool isFloating,
31323132
mapCanvasWidget->setFloating( isFloating );
31333133
if ( dockGeometry.isEmpty() )
31343134
{
3135-
mapCanvasWidget->resize( 400, 400 );
3135+
// try to guess a nice initial placement for view - about 3/4 along, half way down
3136+
mapCanvasWidget->setGeometry( QRect( rect().width() * 0.75, rect().height() * 0.5, 400, 400 ) );
31363137
}
31373138
else
31383139
{

0 commit comments

Comments
 (0)
Please sign in to comment.