Sidebar size fixes

This commit is contained in:
miruka
2019-07-16 17:08:06 -04:00
parent 96745902f3
commit e173253f74
6 changed files with 30 additions and 19 deletions

View File

@@ -40,8 +40,11 @@ Item {
id: sidePane
canAutoSize: uiSplitView.canAutoSize
width: implicitWidth // Initial width
// Initial width until user manually resizes
width: implicitWidth
Layout.minimumWidth: reduce ? 0 : theme.sidePane.collapsedWidth
// -1: avoid making swipeview stuff disappear when dragged to max
Layout.maximumWidth: parent.width - 1
Behavior on Layout.minimumWidth {
// Must run faster than SidePane implicitWidth anim