diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-12-11 20:47:41 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-12-11 20:47:41 +0100 |
commit | d36ba00ff6e5a02f79e7d5f389ecc1d2254f08f4 (patch) | |
tree | e6aac092e6cfa2a73bbc2ae79467b7d63e2aa206 /resources/qml/ChatPage.qml | |
parent | 5c1cc7d5c673fd0a248d1c972cf3ed662e7bd670 (diff) |
Properly set position of resize handler after letting it go
fixes #817
fixes sidebar not staying small after restart
Diffstat (limited to 'resources/qml/ChatPage.qml')
-rw-r--r-- | resources/qml/ChatPage.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/qml/ChatPage.qml b/resources/qml/ChatPage.qml index 0b0c8533..38d79a0a 100644 --- a/resources/qml/ChatPage.qml +++ b/resources/qml/ChatPage.qml @@ -85,7 +85,9 @@ Rectangle { id: roomListC minimumWidth: roomlist.avatarSize * 4 + Nheko.paddingSmall * 2 - preferredWidth: Settings.roomListWidth >= minimumWidth ? Settings.roomListWidth : roomlist.avatarSize * 5 + Nheko.paddingSmall * 2 + preferredWidth: (Settings.roomListWidth == - 1) + ? (roomlist.avatarSize * 5 + Nheko.paddingSmall * 2) + : (Settings.roomListWidth >= minimumWidth ? Settings.roomListWidth : collapsedWidth) maximumWidth: roomlist.avatarSize * 10 + Nheko.paddingSmall * 2 collapsedWidth: roomlist.avatarSize + 2 * Nheko.paddingMedium |