mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Mobile: don't make sub-pages fill the parent
This had very strange results with the current Kirigami. Instead set the width of those pages based on our overall column width. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b9861a0059
commit
5025943bc4
3 changed files with 3 additions and 3 deletions
|
@ -59,6 +59,7 @@ Kirigami.Page {
|
||||||
rightPadding: 0
|
rightPadding: 0
|
||||||
bottomPadding: 0
|
bottomPadding: 0
|
||||||
background: Rectangle { color: subsurfaceTheme.backgroundColor }
|
background: Rectangle { color: subsurfaceTheme.backgroundColor }
|
||||||
|
width: rootItem.colWidth
|
||||||
|
|
||||||
states: [
|
states: [
|
||||||
State {
|
State {
|
||||||
|
|
|
@ -13,7 +13,7 @@ Kirigami.Page {
|
||||||
rightPadding: 0
|
rightPadding: 0
|
||||||
bottomPadding: 0
|
bottomPadding: 0
|
||||||
property bool firstRun: true
|
property bool firstRun: true
|
||||||
|
width: rootItem.colWidth
|
||||||
MapWidget {
|
MapWidget {
|
||||||
id: mapWidget
|
id: mapWidget
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
|
@ -127,6 +127,7 @@ Kirigami.ApplicationWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
globalDrawer: Kirigami.GlobalDrawer {
|
globalDrawer: Kirigami.GlobalDrawer {
|
||||||
|
height: rootItem.height
|
||||||
topContent: Image {
|
topContent: Image {
|
||||||
source: "qrc:/qml/icons/dive.jpg"
|
source: "qrc:/qml/icons/dive.jpg"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
@ -661,7 +662,6 @@ if you have network connectivity and want to sync your data to cloud storage."),
|
||||||
DiveDetails {
|
DiveDetails {
|
||||||
id: detailsWindow
|
id: detailsWindow
|
||||||
visible: false
|
visible: false
|
||||||
anchors.fill: parent
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Log {
|
Log {
|
||||||
|
@ -682,7 +682,6 @@ if you have network connectivity and want to sync your data to cloud storage."),
|
||||||
MapPage {
|
MapPage {
|
||||||
id: mapPage
|
id: mapPage
|
||||||
visible: false
|
visible: false
|
||||||
anchors.fill: parent
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ThemeTest {
|
ThemeTest {
|
||||||
|
|
Loading…
Add table
Reference in a new issue