mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: more fixes to correctly calculate page widths
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0e49d6965c
commit
41ab12533b
3 changed files with 3 additions and 4 deletions
|
@ -6,7 +6,7 @@ import org.subsurfacedivelog.mobile 1.0
|
|||
|
||||
Kirigami.ScrollablePage {
|
||||
id: aboutPage
|
||||
property int pageWidth: subsurfaceTheme.columnWidth - Kirigami.Units.smallSpacing
|
||||
property int pageWidth: aboutPage.width - aboutPage.leftPadding - aboutPage.rightPadding
|
||||
title: "About Subsurface-mobile"
|
||||
|
||||
ColumnLayout {
|
||||
|
|
|
@ -21,7 +21,7 @@ Item {
|
|||
|
||||
ColumnLayout {
|
||||
id: outerLayout
|
||||
width: subsurfaceTheme.columnWidth - 2 * Kirigami.Units.gridUnit
|
||||
width: loginWindow.width - loginWindow.leftPadding - loginWindow.rightPadding - 2 * Kirigami.Units.gridUnit
|
||||
|
||||
onVisibleChanged: {
|
||||
if (visible && manager.accessingCloud < 0) {
|
||||
|
|
|
@ -10,7 +10,6 @@ import org.kde.kirigami 1.0 as Kirigami
|
|||
|
||||
Kirigami.ScrollablePage {
|
||||
id: logWindow
|
||||
width: parent.width - Kirigami.Units.gridUnit
|
||||
anchors.margins: Kirigami.Units.gridUnit / 2
|
||||
objectName: "Log"
|
||||
title: "Application Log"
|
||||
|
@ -18,7 +17,7 @@ Kirigami.ScrollablePage {
|
|||
property int pageWidth: subsurfaceTheme.columnWidth - Kirigami.Units.smallSpacing
|
||||
|
||||
ColumnLayout {
|
||||
width: pageWidth
|
||||
width: logWindow.width - logWindow.leftPadding - logWindow.rightPadding - 2 * Kirigami.Units.smallSpacing
|
||||
spacing: Kirigami.Units.smallSpacing
|
||||
Kirigami.Heading {
|
||||
text: "Application Log"
|
||||
|
|
Loading…
Add table
Reference in a new issue