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 authored and github-actions[bot] committed Sep 17, 2024
1 parent 3821fb9 commit 3382cb5
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

0 comments on commit 3382cb5

Please sign in to comment.