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 minimumSize: resizeAreaSize
property int maximumSize: property int maximumSize:
horizontal ? horizontal ? referenceSizeParent.width : referenceSizeParent.height
referenceSizeParent.width - theme.minimumSupportedWidth :
referenceSizeParent.height - theme.minimumSupportedHeight
// //

View File

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

View File

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

View File

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