Auto-expand main pane when filter field focused

This commit is contained in:
miruka
2020-07-14 03:31:01 -04:00
parent f84b13c657
commit 645350f199
2 changed files with 7 additions and 1 deletions

View File

@@ -131,7 +131,12 @@ Item {
PageLoader {
id: pageLoader
anchors.fill: parent
anchors.leftMargin: mainPane.visibleSize
anchors.leftMargin:
mainPane.requireDefaultSize &&
mainPane.minimumSize > mainPane.maximumSize ?
theme.mainPane.minimumSize :
mainPane.visibleSize
visible: ! mainPane.hidden || anchors.leftMargin < width
}
}