RoomSidePane: respect user manual resizing
This commit is contained in:
parent
f9a5902545
commit
46d5704eb6
|
@ -43,6 +43,7 @@ HColumnLayout {
|
||||||
|
|
||||||
|
|
||||||
HSplitView {
|
HSplitView {
|
||||||
|
id: chatSplitView
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
|
||||||
|
@ -79,9 +80,13 @@ HColumnLayout {
|
||||||
RoomSidePane {
|
RoomSidePane {
|
||||||
id: roomSidePane
|
id: roomSidePane
|
||||||
|
|
||||||
property int referenceWidth: roomHeader.buttonsWidth
|
function set_width() { width = referenceWidth }
|
||||||
onReferenceWidthChanged: width = referenceWidth
|
|
||||||
|
|
||||||
|
property int referenceWidth: roomHeader.buttonsWidth
|
||||||
|
onReferenceWidthChanged:
|
||||||
|
if (chatSplitView.canAutoSize) { set_width() }
|
||||||
|
|
||||||
|
width: set_width() // Initial width
|
||||||
Layout.minimumWidth: HStyle.avatar.size
|
Layout.minimumWidth: HStyle.avatar.size
|
||||||
Layout.maximumWidth: parent.width
|
Layout.maximumWidth: parent.width
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user