adjust appwindow min height to fit content

This commit is contained in:
Jaquee 2016-11-23 21:17:01 +01:00
parent 26abdee5c4
commit 427416711c
No known key found for this signature in database
GPG key ID: 384E52B09F45DC39

View file

@ -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
}
}