Better defined maximum sizes for the panes

This commit is contained in:
miruka 2019-12-19 19:27:39 -04:00
parent 535e380f40
commit 5857f4e398
4 changed files with 4 additions and 4 deletions

View File

@ -44,9 +44,7 @@ Drawer {
property int minimumSize: resizeAreaSize
property int maximumSize:
horizontal ?
referenceSizeParent.width - theme.minimumSupportedWidth :
referenceSizeParent.height - theme.minimumSupportedHeight
horizontal ? referenceSizeParent.width : referenceSizeParent.height
//

View File

@ -53,9 +53,11 @@ Item {
HLoader {
id: roomPaneLoader
active: ready
sourceComponent: RoomPane {
id: roomPane
referenceSizeParent: chat
maximumSize: chat.width - theme.minimumSupportedWidth
}
}
}

View File

@ -31,7 +31,6 @@ HPage {
id: eventList
// Avoid a certain binding loop
Layout.minimumWidth: theme.minimumSupportedWidth
Layout.fillWidth: true
Layout.fillHeight: true
}

View File

@ -70,6 +70,7 @@ Item {
MainPane {
id: mainPane
maximumSize: parent.width - theme.minimumSupportedWidth
}
PageLoader {