Skip to content

Commit

Permalink
Micro optimization: insure the height of feature form containers non-…
Browse files Browse the repository at this point in the history
…zero when the item is loaded
  • Loading branch information
nirvn committed Sep 17, 2024
1 parent f51b6ae commit 4ea26a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qml/FeatureForm.qml
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ Page {
property string itemType: Type

active: (Type === 'container' && GroupIndex !== undefined && GroupIndex.valid) || ((Type === 'text' || Type === 'html' || Type === 'qml') && form.model.featureModel.modelMode != FeatureModel.MultiFeatureModel)
height: active ? item.childrenRect.height : 0
height: status == Loader.Ready ? item.childrenRect.height : 0
anchors {
left: parent.left
right: parent.right
Expand Down

1 comment on commit 4ea26a6

@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.