fix: drawer overlapping window footer (player bar)
This commit is contained in:
parent
8ff470989b
commit
aa8c38af99
2 changed files with 5 additions and 17 deletions
|
@ -15,24 +15,10 @@ Kirigami.ScrollablePage {
|
||||||
width: ListView.view.width
|
width: ListView.view.width
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// ListModel {
|
|
||||||
// id: blah
|
|
||||||
//
|
|
||||||
// ListElement {
|
|
||||||
// name: "blah1"
|
|
||||||
// }
|
|
||||||
// ListElement {
|
|
||||||
// name: "blah2"
|
|
||||||
// }
|
|
||||||
// ListElement {
|
|
||||||
// name: "blah3"
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
ListView {
|
ListView {
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
delegate: listDelegate
|
delegate: listDelegate
|
||||||
//model: blah
|
|
||||||
model: Cartographer.artists
|
model: Cartographer.artists
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,14 +12,16 @@ Kirigami.GlobalDrawer {
|
||||||
return width < 800;
|
return width < 800;
|
||||||
}
|
}
|
||||||
function onWindowSizeChanged(width) {
|
function onWindowSizeChanged(width) {
|
||||||
drawerOpen = !isMobile(width);
|
const mobile = isMobile(width);
|
||||||
modal = isMobile(width);
|
drawerOpen = !mobile;
|
||||||
|
modal = mobile;
|
||||||
|
height = mobile ? windowRef.height : windowRef.height - windowRef.footer.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
collapseButtonVisible: false
|
collapseButtonVisible: false
|
||||||
drawerOpen: !isMobile()
|
drawerOpen: !isMobile()
|
||||||
edge: Qt.LeftEdge
|
edge: Qt.LeftEdge
|
||||||
height: parent.height
|
height: parent.height - windowRef.footer.height
|
||||||
modal: false
|
modal: false
|
||||||
|
|
||||||
actions: [
|
actions: [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue