Update connection dialog's dimensions

This commit is contained in:
Christian Muehlhaeuser 2020-03-04 13:39:46 +01:00
parent 5a95a1b67f
commit 9ec44c5bca
No known key found for this signature in database
GPG key ID: 3CF9FA45CA1EBB7E

View file

@ -19,7 +19,7 @@ ApplicationWindow {
minimumWidth: 364 minimumWidth: 364
minimumHeight: 590 minimumHeight: 590
width: settings.width > 0 ? settings.width : minimumWidth * 2 width: settings.width > 0 ? settings.width : minimumWidth * 2
height: settings.height > 0 ? settings.height : minimumWidth * 1.5 height: settings.height > 0 ? settings.height : minimumWidth * 1.75
Binding on x { Binding on x {
when: settings.positionX > 0 when: settings.positionX > 0
value: settings.positionX value: settings.positionX
@ -54,7 +54,7 @@ ApplicationWindow {
id: connectDialog id: connectDialog
x: mainWindow.width / 2 - width / 2 x: mainWindow.width / 2 - width / 2
y: mainWindow.height / 2 - height / 2 - mainWindow.header.height y: mainWindow.height / 2 - height / 2 - mainWindow.header.height
width: 340 width: Math.min(460, mainWindow.width - 16)
height: 500 height: 500
} }