mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-03-09 10:04:48 +00:00
adjust appwindow min height to fit content
This commit is contained in:
parent
26abdee5c4
commit
427416711c
1 changed files with 3 additions and 3 deletions
6
main.qml
6
main.qml
|
@ -954,7 +954,7 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
property int maxWidth: leftPanel.width + 655 + rightPanel.width
|
property int maxWidth: leftPanel.width + 655 + rightPanel.width
|
||||||
property int maxHeight: 700
|
property int minHeight: 720
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: resizeArea
|
id: resizeArea
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
@ -991,9 +991,9 @@ ApplicationWindow {
|
||||||
appWindow.width -= dx
|
appWindow.width -= dx
|
||||||
else appWindow.width = parent.maxWidth
|
else appWindow.width = parent.maxWidth
|
||||||
|
|
||||||
if(appWindow.height - dy > parent.maxHeight)
|
if(appWindow.height - dy > parent.minHeight)
|
||||||
appWindow.height -= dy
|
appWindow.height -= dy
|
||||||
else appWindow.height = parent.maxHeight
|
else appWindow.height = parent.minHeight
|
||||||
previousPosition = pos
|
previousPosition = pos
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue