Fix hiding members pane not giving space to chat
This commit is contained in:
parent
1a4ac0f432
commit
c67e1bfc79
|
@ -81,14 +81,35 @@ HColumnLayout {
|
||||||
id: roomSidePane
|
id: roomSidePane
|
||||||
|
|
||||||
activeView: roomHeader.activeButton
|
activeView: roomHeader.activeButton
|
||||||
transform: Translate {
|
property int oldWidth: width
|
||||||
x: roomSidePane.activeView ? 0 : roomSidePane.width
|
onActiveViewChanged:
|
||||||
|
activeView ? restoreAnimation.start() : hideAnimation.start()
|
||||||
|
|
||||||
Behavior on x {
|
NumberAnimation {
|
||||||
NumberAnimation { duration: HStyle.animationDuration }
|
id: hideAnimation
|
||||||
|
target: roomSidePane
|
||||||
|
properties: "width"
|
||||||
|
duration: HStyle.animationDuration
|
||||||
|
from: target.width
|
||||||
|
to: 0
|
||||||
|
onStarted: {
|
||||||
|
target.oldWidth = target.width
|
||||||
|
target.Layout.minimumWidth = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NumberAnimation {
|
||||||
|
id: restoreAnimation
|
||||||
|
target: roomSidePane
|
||||||
|
properties: "width"
|
||||||
|
duration: HStyle.animationDuration
|
||||||
|
from: 0
|
||||||
|
to: target.oldWidth
|
||||||
|
onStopped: target.Layout.minimumWidth = Qt.binding(
|
||||||
|
function() { return HStyle.avatar.size }
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
collapsed: width < Layout.minimumWidth + 8
|
collapsed: width < Layout.minimumWidth + 8
|
||||||
|
|
||||||
property bool wasSnapped: false
|
property bool wasSnapped: false
|
||||||
|
|
|
@ -73,7 +73,7 @@ Item {
|
||||||
if (pageStack.initialPageSet) { return }
|
if (pageStack.initialPageSet) { return }
|
||||||
pageStack.initialPageSet = true
|
pageStack.initialPageSet = true
|
||||||
showPage(accountsLoggedIn ? "Default" : "SignIn")
|
showPage(accountsLoggedIn ? "Default" : "SignIn")
|
||||||
if (accountsLoggedIn) { initialRoomTimer.start() }
|
//if (accountsLoggedIn) { initialRoomTimer.start() }
|
||||||
}
|
}
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user