summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-06 12:38:56 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-13 11:32:27 -0700
commita200ac09829c867b5dcb9f106a333ebbf0126a95 (patch)
treebb4f75931996d03f75f374e95f8938d410089e56
parent5025943bc414a9dd9217a93d596f006a766b047e (diff)
downloadsubsurface-a200ac09829c867b5dcb9f106a333ebbf0126a95.tar.gz
Mobile: need to recalculate column width when rotating
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--mobile-widgets/qml/main.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index 150c6d1ed..c44143fe1 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -589,6 +589,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
} else if (rootItem.lastOrientation !== undefined && rootItem.lastOrientation != Screen.primaryOrientation) {
console.log("Screen rotated, no action necessary")
rootItem.lastOrientation = Screen.primaryOrientation
+ setupUnits()
} else {
console.log("size change without rotation to " + width + " x " + height)
if (width > subsurfaceTheme.initialWidth) {