From 61bbc4e7dc6ea8817803fbf5a31982fd132745b9 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Thu, 26 Dec 2019 15:14:12 +0800 Subject: [PATCH] Limit max height. --- imports/Spectral/Dialog/InviteUserDialog.qml | 4 ++-- imports/Spectral/Dialog/JoinRoomDialog.qml | 2 +- imports/Spectral/Dialog/StartChatDialog.qml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/imports/Spectral/Dialog/InviteUserDialog.qml b/imports/Spectral/Dialog/InviteUserDialog.qml index b14e4da2d..0291fe58d 100644 --- a/imports/Spectral/Dialog/InviteUserDialog.qml +++ b/imports/Spectral/Dialog/InviteUserDialog.qml @@ -13,8 +13,8 @@ Dialog { property var room anchors.centerIn: parent - width: 480 - height: window.height - 100 + width: 360 + height: Math.min(window.height - 100, 640) id: root diff --git a/imports/Spectral/Dialog/JoinRoomDialog.qml b/imports/Spectral/Dialog/JoinRoomDialog.qml index c8df13dbd..9134b98e0 100644 --- a/imports/Spectral/Dialog/JoinRoomDialog.qml +++ b/imports/Spectral/Dialog/JoinRoomDialog.qml @@ -17,7 +17,7 @@ Dialog { anchors.centerIn: parent width: 480 - height: window.height - 100 + height: Math.min(window.height - 100, 800) id: root diff --git a/imports/Spectral/Dialog/StartChatDialog.qml b/imports/Spectral/Dialog/StartChatDialog.qml index 273f7cd12..f572bccf5 100644 --- a/imports/Spectral/Dialog/StartChatDialog.qml +++ b/imports/Spectral/Dialog/StartChatDialog.qml @@ -13,8 +13,8 @@ Dialog { property var connection anchors.centerIn: parent - width: 480 - height: window.height - 100 + width: 360 + height: Math.min(window.height - 100, 640) id: root