QML UI: more fixes to correctly calculate page widths

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-04-07 12:12:01 -07:00
parent 0e49d6965c
commit 41ab12533b
3 changed files with 3 additions and 4 deletions

View file

@ -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 {

View file

@ -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) {

View file

@ -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"