summary refs log tree commit diff
path: root/resources/qml/components/AdaptiveLayout.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-12-11 20:47:41 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-12-11 20:47:41 +0100
commitd36ba00ff6e5a02f79e7d5f389ecc1d2254f08f4 (patch)
treee6aac092e6cfa2a73bbc2ae79467b7d63e2aa206 /resources/qml/components/AdaptiveLayout.qml
parentFix broken top bar clicks without pins (diff)
downloadnheko-d36ba00ff6e5a02f79e7d5f389ecc1d2254f08f4.tar.xz
Properly set position of resize handler after letting it go
fixes #817
fixes sidebar not staying small after restart
Diffstat (limited to 'resources/qml/components/AdaptiveLayout.qml')
-rw-r--r--resources/qml/components/AdaptiveLayout.qml7
1 files changed, 4 insertions, 3 deletions
diff --git a/resources/qml/components/AdaptiveLayout.qml b/resources/qml/components/AdaptiveLayout.qml

index 756d3291..ae6dec08 100644 --- a/resources/qml/components/AdaptiveLayout.qml +++ b/resources/qml/components/AdaptiveLayout.qml
@@ -82,7 +82,6 @@ Container { return (collapsible && x < minimumWidth) ? collapsedWidth : x; } - //visible: !container.singlePageMode enabled: !container.singlePageMode height: container.height width: 1 @@ -107,8 +106,10 @@ Container { margin: container.splitterGrabMargin grabPermissions: PointerHandler.CanTakeOverFromAnything | PointerHandler.ApprovesTakeOverByHandlersOfSameType onActiveChanged: { - if (!active) - splitter.parent.preferredWidth = splitter.x; + if (!active) { + splitter.x = splitter.calculatedWidth; + splitter.parent.preferredWidth = splitter.calculatedWidth; + } } }