Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
lkzhao committed May 7, 2024
1 parent 91c8c26 commit 15cad0b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
//

import UIKit
import BaseToolbox

/// A component that lays out its children horizontally in a paging fashion similar to an ``HPager``.
/// However, instead of creating the child components all at once, it creates them on demand when it needs to render the specific page.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
//

import UIKit
import BaseToolbox

/// A component that lays out its children horizontally in a paging fashion similar to an ``HStack``.
/// However, instead of creating the child components all at once, it creates them on demand when it needs to render the specific cell.
Expand Down Expand Up @@ -123,7 +122,7 @@ extension DynamicStackRenderNode {
let mainSize = main(constraintSize) + spacing
let crossSize = cross(constraintSize)
let start = Int(main(frame.origin) / mainSize)
let end = Int((main(frame.bottomRight) - 0.1) / mainSize)
let end = Int((main(CGPoint(x: frame.maxX, y: frame.maxY)) - 0.1) / mainSize)
let indexes = start...end
let childConstraint = Constraint(minSize: size(main: main(constraintSize), cross: alignItems == .stretch ? cross(constraintSize) : -.infinity), maxSize: constraintSize)
return indexes.map { i in
Expand Down

0 comments on commit 15cad0b

Please sign in to comment.