RoomSidePane: respect user manual resizing

This commit is contained in:
miruka 2019-05-12 16:01:18 -04:00
parent f9a5902545
commit 46d5704eb6

View File

@ -43,6 +43,7 @@ HColumnLayout {
HSplitView {
id: chatSplitView
Layout.fillWidth: true
Layout.fillHeight: true
@ -79,9 +80,13 @@ HColumnLayout {
RoomSidePane {
id: roomSidePane
property int referenceWidth: roomHeader.buttonsWidth
onReferenceWidthChanged: width = referenceWidth
function set_width() { width = referenceWidth }
property int referenceWidth: roomHeader.buttonsWidth
onReferenceWidthChanged:
if (chatSplitView.canAutoSize) { set_width() }
width: set_width() // Initial width
Layout.minimumWidth: HStyle.avatar.size
Layout.maximumWidth: parent.width
}