Skip to content

[Bug]  #1

@chenjunxuan

Description

@chenjunxuan

Layout 里面

  • (CGFloat)maxYWithColumnHeightsArray:(NSArray *)array 的判断
    if ([heightNumber doubleValue] > self.maxY) 在 reload collection 的时候很容易会不满足条件(都是小于等于),导致返回的 maxY 保持 0,然后 self.maxY = 0, cell 都消失看不到了。

    __block CGFloat maxY = 0;
    加上 __block 应该是用在这里的吧: [heightNumber doubleValue] > maxY

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions