Better defined maximum sizes for the panes
This commit is contained in:
parent
535e380f40
commit
5857f4e398
|
@ -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
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,6 +70,7 @@ Item {
|
||||||
|
|
||||||
MainPane {
|
MainPane {
|
||||||
id: mainPane
|
id: mainPane
|
||||||
|
maximumSize: parent.width - theme.minimumSupportedWidth
|
||||||
}
|
}
|
||||||
|
|
||||||
PageLoader {
|
PageLoader {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user