Skip to content

Commit c7f881b

Browse files
author
ersts
committed
-Small changs to auto arrange to fit better on laptops and Macs
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9054 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4d52da4 commit c7f881b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/plugins/georeferencer/plugingui.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,28 +180,28 @@ void QgsGeorefPluginGui::on_mArrangeWindowsButton_clicked()
180180

181181
int newPluginDialogHeight = qMax(int(myScreenHeight * 0.2), minimumHeight());
182182
int newPluginDialogWidth = qMax(int(myScreenWidth * 0.33), minimumWidth());
183-
int newPointDialogHeight = qMax(int(myScreenHeight * 0.70), mPointDialog->minimumHeight());
183+
int newPointDialogHeight = qMax(int(myScreenHeight * 0.60), mPointDialog->minimumHeight());
184184
int newPointDialogWidth = qMax(int(myScreenWidth * 0.33), mPointDialog->minimumWidth());
185-
int newMainWindowHeight = qMax(int(myScreenHeight * 0.95), mainWindow->minimumHeight());
185+
int newMainWindowHeight = qMax(int(myScreenHeight * 0.90), mainWindow->minimumHeight());
186186
int newMainWindowWidth = qMax(int(myScreenWidth * 0.65), mainWindow->minimumHeight());
187187

188188
//place main window
189189
mainWindow->setEnabled(false); //avoid getting two resize events for the main canvas
190190
mainWindow->resize(newMainWindowWidth, newMainWindowHeight);
191191
//Resize again to account for frame border width -- Probably a better way to do this.
192192
mainWindow->resize(newMainWindowWidth - (mainWindow->width() - newMainWindowWidth), newMainWindowHeight - (mainWindow->height() - newMainWindowHeight));
193-
mainWindow->move(myScreenWidth - newMainWindowWidth, 0);
193+
mainWindow->move(myScreenWidth - newMainWindowWidth, int(myScreenHeight * 0.05));
194194
mainWindow->setEnabled(true);
195195

196196
//place this dialog
197197
resize(newPluginDialogWidth, newPluginDialogHeight);
198198
resize(newPluginDialogWidth - (width() - newPluginDialogWidth), newPluginDialogHeight - (height() - newPluginDialogHeight));
199-
move(0, 0);
199+
move(0, int(myScreenHeight * 0.05));
200200

201201
//place point dialog
202202
mPointDialog->resize(newPointDialogWidth, newPointDialogHeight);
203203
mPointDialog->resize(newPointDialogWidth - (mPointDialog->width() - newPointDialogWidth), newPointDialogHeight - (mPointDialog->height() - newPointDialogHeight));
204-
mPointDialog->move(0, int(myScreenHeight * 0.3));
204+
mPointDialog->move(0, int(myScreenHeight * 0.35));
205205

206206

207207
}

0 commit comments

Comments
 (0)