From b6c59311f8c53ba7aad97a261e2ad308c0ffa552 Mon Sep 17 00:00:00 2001 From: Mario Lukas Mauberger Date: Mon, 5 Jun 2023 19:01:24 +0200 Subject: [PATCH] =?UTF-8?q?CATTY-693=20Note=20Brick=20doesn=C2=B4t=20show?= =?UTF-8?q?=20the=20name=20field=20properly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CollectionViewCells/BrickCellData/BrickCellTextData.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Catty/Views/Custom/CollectionViewCells/BrickCellData/BrickCellTextData.m b/src/Catty/Views/Custom/CollectionViewCells/BrickCellData/BrickCellTextData.m index 7411bc8d4b..a061942312 100644 --- a/src/Catty/Views/Custom/CollectionViewCells/BrickCellData/BrickCellTextData.m +++ b/src/Catty/Views/Custom/CollectionViewCells/BrickCellData/BrickCellTextData.m @@ -153,6 +153,12 @@ - (void)correctHeightAndWidth:(NSInteger) availableHeight newFrame.size.height = availableHeight; self.frame = newFrame; } + if (self.frame.size.width < UIDefines.brickInputFieldMinWidth) + { + CGRect newFrame = self.frame; + newFrame.size.width = UIDefines.brickInputFieldMinWidth; + self.frame = newFrame; + } if (self.frame.origin.x + self.frame.size.width + 60 > [Util screenWidth]) { self.frame = CGRectMake(self.frame.origin.x,self.frame.origin.y,[Util screenWidth] - 60 - self.frame.origin.x, self.frame.size.height); }