summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mobile-widgets/qml/main.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index e5dbbbc7b..6f5412658 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -564,6 +564,13 @@ if you have network connectivity and want to sync your data to cloud storage."),
darkTheme()
}
}
+
+ onWidthChanged: {
+ console.log("Window width changed to " + width)
+ // we need to recalculate our base units
+ setupUnits()
+ }
+
pageStack.initialPage: DiveList {
id: diveList
opacity: 0