From 427416711c9445224fc39e9afea5c9f22f1d53a2 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Wed, 23 Nov 2016 21:17:01 +0100 Subject: [PATCH] adjust appwindow min height to fit content --- main.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.qml b/main.qml index 5f28e415..0293b806 100644 --- a/main.qml +++ b/main.qml @@ -954,7 +954,7 @@ ApplicationWindow { } property int maxWidth: leftPanel.width + 655 + rightPanel.width - property int maxHeight: 700 + property int minHeight: 720 MouseArea { id: resizeArea hoverEnabled: true @@ -991,9 +991,9 @@ ApplicationWindow { appWindow.width -= dx else appWindow.width = parent.maxWidth - if(appWindow.height - dy > parent.maxHeight) + if(appWindow.height - dy > parent.minHeight) appWindow.height -= dy - else appWindow.height = parent.maxHeight + else appWindow.height = parent.minHeight previousPosition = pos } }