diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-04-07 12:12:01 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-04-07 22:57:01 -0700 |
commit | 41ab12533b33174c080fcdd0008a56f3bde6194b (patch) | |
tree | e56ce56e94e1730a56aecef1e9c33f7c6123707c /mobile-widgets | |
parent | 0e49d6965cbdbf387c0fe316338805d3232c0d3d (diff) | |
download | subsurface-41ab12533b33174c080fcdd0008a56f3bde6194b.tar.gz |
QML UI: more fixes to correctly calculate page widths
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/About.qml | 2 | ||||
-rw-r--r-- | mobile-widgets/qml/CloudCredentials.qml | 2 | ||||
-rw-r--r-- | mobile-widgets/qml/Log.qml | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/mobile-widgets/qml/About.qml b/mobile-widgets/qml/About.qml index b1ca6e6bc..43e990421 100644 --- a/mobile-widgets/qml/About.qml +++ b/mobile-widgets/qml/About.qml @@ -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 { diff --git a/mobile-widgets/qml/CloudCredentials.qml b/mobile-widgets/qml/CloudCredentials.qml index aa7c57651..9a6ddc7f1 100644 --- a/mobile-widgets/qml/CloudCredentials.qml +++ b/mobile-widgets/qml/CloudCredentials.qml @@ -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) { diff --git a/mobile-widgets/qml/Log.qml b/mobile-widgets/qml/Log.qml index d617901de..147709cea 100644 --- a/mobile-widgets/qml/Log.qml +++ b/mobile-widgets/qml/Log.qml @@ -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" |