From 0b92e872b6f2a42b09ca52c235935710572eee4e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Wed, 30 Sep 2020 11:43:00 -0400
Subject: [PATCH] settings: do not stretch settings vertically

Change-Id: Ie1442ba33f31775574b2542d161f6bea37f8e1f6
Gitlab: #118
---
 src/settingsview/components/AvSettingPage.qml          | 3 +--
 src/settingsview/components/CurrentAccountSettings.qml | 3 +--
 src/settingsview/components/GeneralSettingsPage.qml    | 3 +--
 src/settingsview/components/PluginSettingsPage.qml     | 3 +--
 4 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/settingsview/components/AvSettingPage.qml b/src/settingsview/components/AvSettingPage.qml
index eba0c1e41..19fb86bd2 100644
--- a/src/settingsview/components/AvSettingPage.qml
+++ b/src/settingsview/components/AvSettingPage.qml
@@ -50,9 +50,8 @@ Rectangle {
     ColumnLayout {
         id: avSettingsColumnLayout
 
-        anchors.centerIn: root
+        anchors.horizontalCenter: root.horizontalCenter
 
-        height: root.height
         width: Math.min(JamiTheme.maximumWidthSettingsView, root.width)
 
         // Audio
diff --git a/src/settingsview/components/CurrentAccountSettings.qml b/src/settingsview/components/CurrentAccountSettings.qml
index 04696be95..4f0484ed1 100644
--- a/src/settingsview/components/CurrentAccountSettings.qml
+++ b/src/settingsview/components/CurrentAccountSettings.qml
@@ -182,9 +182,8 @@ Rectangle {
     ColumnLayout {
         id: currentAccountSettingsColumnLayout
 
-        anchors.centerIn: root
+        anchors.horizontalCenter: root.horizontalCenter
 
-        height: root.height
         width: Math.min(JamiTheme.maximumWidthSettingsView, root.width)
 
         ToggleSwitch {
diff --git a/src/settingsview/components/GeneralSettingsPage.qml b/src/settingsview/components/GeneralSettingsPage.qml
index f6ae17928..9659448ac 100644
--- a/src/settingsview/components/GeneralSettingsPage.qml
+++ b/src/settingsview/components/GeneralSettingsPage.qml
@@ -38,9 +38,8 @@ Rectangle {
     ColumnLayout {
         id: generalSettingsColumnLayout
 
-        anchors.centerIn: root
+        anchors.horizontalCenter: root.horizontalCenter
 
-        height: root.height
         width: Math.min(JamiTheme.maximumWidthSettingsView, root.width)
 
         // system setting panel
diff --git a/src/settingsview/components/PluginSettingsPage.qml b/src/settingsview/components/PluginSettingsPage.qml
index df8e5fb10..f1d9b7d2b 100644
--- a/src/settingsview/components/PluginSettingsPage.qml
+++ b/src/settingsview/components/PluginSettingsPage.qml
@@ -44,9 +44,8 @@ Rectangle {
     ColumnLayout {
         id: pluginSettingsColumnLayout
 
-        anchors.centerIn: root
+        anchors.horizontalCenter: root.horizontalCenter
 
-        height: root.height
         width: Math.min(JamiTheme.maximumWidthSettingsView, root.width)
 
         ToggleSwitch {
-- 
GitLab