diff --git a/OctoPod/Panel UI/Dashboard/PrintersCameraGridViewCell.swift b/OctoPod/Panel UI/Dashboard/PrintersCameraGridViewCell.swift index 0ca4c97..0ebc3d5 100644 --- a/OctoPod/Panel UI/Dashboard/PrintersCameraGridViewCell.swift +++ b/OctoPod/Panel UI/Dashboard/PrintersCameraGridViewCell.swift @@ -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 + } }