Skip to content
Snippets Groups Projects
Commit a2d11074 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: Iebb47b8c7e694049ba297609a12bcf43db7dddd3
GitLab: #1217
parent ad14302a
No related branches found
No related tags found
No related merge requests found
......@@ -38,15 +38,18 @@ Rectangle {
property string textColor: UtilsAdapter.luma(root.color) ? JamiTheme.chatviewTextColorLight : JamiTheme.chatviewTextColorDark
ColumnLayout {
Item {
id: swarmProfileDetails
anchors.fill: parent
spacing: 0
ColumnLayout {
id: header
Layout.topMargin: JamiTheme.swarmDetailsPageTopMargin
Layout.fillWidth: true
anchors.top: parent.top
anchors.topMargin: JamiTheme.swarmDetailsPageTopMargin
anchors.left: parent.left
anchors.right: parent.right
spacing: JamiTheme.preferredMarginSize
RowLayout {
......@@ -230,8 +233,11 @@ Rectangle {
Rectangle {
id: details
Layout.fillWidth: true
Layout.preferredHeight: root.height - header.height - 2 * JamiTheme.preferredMarginSize
anchors.top: header.bottom
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.right: parent.right
color: JamiTheme.secondaryBackgroundColor
JamiFlickable {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment