Skip to content

Commit

Permalink
Merge pull request #25174 from Eism/toolbars_width_fix
Browse files Browse the repository at this point in the history
Fixed StyledToolbarView with calculation
  • Loading branch information
DmitryArefiev authored Oct 16, 2024
2 parents 524ae7f + 074eeaf commit 49779eb
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,23 @@ Rectangle {

anchors.verticalCenter: parent.verticalCenter

width: {
var result = 0
var children = content.children

for (var i = 0; i < children.length; ++i) {
result += children[i].width + spacing

}

if (result > 0) {
result -= spacing
}

return result
}
height: childrenRect.height

clip: true
spacing: 4

Expand Down

0 comments on commit 49779eb

Please sign in to comment.