Skip to content

Commit

Permalink
Follow up legend tweak, always remove collapse item width
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jul 21, 2024
1 parent 44049d9 commit 9f449c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qml/Legend.qml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ ListView {
width: rectangle.width
- itemPadding
- 46 // legend icon + right padding
- (collapsedState.isVisible ? collapsedState.width : 0)
- collapsedState.width
- (layerVisibility.isVisible ? layerVisibility.width : 0)
- (trackingBadge.isVisible ? trackingBadge.width + 5 : 0)
- (lockedBadge.isVisible ? lockedBadge.width + 5 : 0)
Expand Down

1 comment on commit 9f449c2

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