Skip to content

Commit

Permalink
Re-add background rectangle to deal with (now rare but still present)…
Browse files Browse the repository at this point in the history
… Qt flow glitches
  • Loading branch information
nirvn committed Oct 15, 2023
1 parent eef75ac commit f054f26
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/qml/FeatureForm.qml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ Page {
}
}

/**
* The main form content area
*/
SwipeView {
id: swipeView
Layout.fillWidth: true
Expand Down Expand Up @@ -180,9 +183,11 @@ Page {
}
}

/**
* The main form content area
*/
Rectangle {
anchors.fill: parent
color: Theme.mainBackgroundColor
}

Flow {
id: content
width: form.width
Expand Down Expand Up @@ -417,7 +422,7 @@ Page {
? parent.width / ColumnCount
: parent.width
: form.width
height: fieldGroupTitle.height + field.childrenRect.height
height: fieldGroupTitle.height + fieldContent.childrenRect.height

Rectangle {
id: fieldGroupBackground
Expand Down Expand Up @@ -457,7 +462,7 @@ Page {
}

Item {
id: field
id: fieldContent

anchors {
top: fieldGroupTitle.bottom
Expand Down

1 comment on commit f054f26

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.