mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Mobile: recalculate gridUnit and font size if width changes
This could happen when you rotate a mobile device, or when running Subsurface-mobile on the desktop. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
54f48f0b37
commit
8c0af2b147
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue