Skip to content
Snippets Groups Projects
Commit afc0423b authored by Sébastien Blin's avatar Sébastien Blin
Browse files

swarmdetailspanel: avoid bugguy column layout

Since Qt 6.4, some layout are bugguy causing bad positioning.
(Even some examples in Qt's doc are incorrect)
So, use anchors instead.

Change-Id: Id0f0175208312b6e4b9fe503d8713c7ff037024a
GitLab: #1217
parent 0b18f3d1
No related branches found
No related tags found
No related merge requests found
...@@ -42,19 +42,23 @@ Rectangle { ...@@ -42,19 +42,23 @@ Rectangle {
id: swarmProfileDetails id: swarmProfileDetails
anchors.fill: parent anchors.fill: parent
ColumnLayout { Item {
id: header id: header
anchors.top: parent.top anchors.top: parent.top
anchors.topMargin: JamiTheme.swarmDetailsPageTopMargin anchors.topMargin: JamiTheme.swarmDetailsPageTopMargin
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
height: headerRow.implicitHeight + JamiTheme.preferredMarginSize + settingsTabButton.height
spacing: JamiTheme.preferredMarginSize
RowLayout { RowLayout {
id: headerRow
spacing: 15 spacing: 15
Layout.leftMargin: 15 anchors.top: parent.top
anchors.leftMargin: 15
anchors.left: parent.left
anchors.right: parent.right
PhotoboothView { PhotoboothView {
id: currentAccountAvatar id: currentAccountAvatar
...@@ -162,8 +166,11 @@ Rectangle { ...@@ -162,8 +166,11 @@ Rectangle {
currentIndex: 0 currentIndex: 0
Layout.preferredWidth: root.width anchors.top: headerRow.bottom
Layout.preferredHeight: settingsTabButton.height anchors.topMargin: JamiTheme.preferredMarginSize
anchors.left: parent.left
anchors.right: parent.right
height: settingsTabButton.height
property string currentItemName: itemAt(currentIndex).objectName property string currentItemName: itemAt(currentIndex).objectName
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment