From a2d1214e364eee4d36771f22e29d2927abcb3ea5 Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Fri, 6 Aug 2021 04:30:08 +0300 Subject: [PATCH] [settings] Perserve the layout when VKB is opened --- app/settings/BooksSettings.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/settings/BooksSettings.qml b/app/settings/BooksSettings.qml index c7a894a..c0ccb3f 100644 --- a/app/settings/BooksSettings.qml +++ b/app/settings/BooksSettings.qml @@ -45,7 +45,9 @@ Page { property alias title: pageHeader.title readonly property string rootPath: "/apps/" + appName() + "/" readonly property bool darkOnLight: ('colorScheme' in Theme) && Theme.colorScheme === 1 - readonly property bool landscapeLayout: (width > height && Screen.sizeCategory > Screen.Small) || Screen.sizeCategory > Screen.Medium + readonly property int screenWidth: isPortrait ? Screen.width : Screen.height + readonly property int screenHeight: isPortrait ? Screen.height : Screen.width + readonly property bool landscapeLayout: (screenWidth > screenHeight && Screen.sizeCategory > Screen.Small) || Screen.sizeCategory > Screen.Medium // jolla-settings expects these properties: property var applicationName