Skip to content

Commit

Permalink
use totalSpacing
Browse files Browse the repository at this point in the history
  • Loading branch information
watt committed Mar 31, 2023
1 parent 53682c6 commit 07344c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BlueprintUI/Sources/Layout/EqualStack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,13 @@ extension EqualStack {
switch direction {
case .horizontal:
totalSize = CGSize(
width: maximumItemWidth * CGFloat(subelements.count) + spacing * CGFloat(subelements.count - 1),
width: maximumItemWidth * CGFloat(subelements.count) + totalSpacing,
height: maximumItemHeight
)
case .vertical:
totalSize = CGSize(
width: maximumItemWidth,
height: maximumItemHeight * CGFloat(subelements.count) + spacing * CGFloat(subelements.count - 1)
height: maximumItemHeight * CGFloat(subelements.count) + totalSpacing
)
}

Expand Down

0 comments on commit 07344c3

Please sign in to comment.