Skip to content

Commit

Permalink
Dashboard of cameras now renders fine after latest changes
Browse files Browse the repository at this point in the history
Issue #622
  • Loading branch information
gdombiak committed Nov 28, 2022
1 parent c2f445e commit c555502
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions OctoPod/Panel UI/Dashboard/PrintersCameraGridViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,9 @@ class PrintersCameraGridViewCell: UICollectionViewCell {
@IBAction func expandButtonClicked(_ sender: Any) {
delegate?.expandCameraClicked(cell: self)
}

override func preferredLayoutAttributesFitting(_ layoutAttributes: UICollectionViewLayoutAttributes) -> UICollectionViewLayoutAttributes {
layoutAttributes.bounds.size.height = systemLayoutSizeFitting(UIView.layoutFittingCompressedSize).height
return layoutAttributes
}
}

0 comments on commit c555502

Please sign in to comment.