From 9b6b71a0c05ae76e3ead1e278e5ec4e5dbc47d2e Mon Sep 17 00:00:00 2001 From: manuroe Date: Fri, 9 Mar 2018 17:28:45 +0100 Subject: [PATCH 1/9] BF: Cannot join from a room preview for room with a long topic (#1645) Turn the room topic label into a text view to be able to scroll. --- Riot/Views/RoomTitle/PreviewRoomTitleView.h | 2 +- Riot/Views/RoomTitle/PreviewRoomTitleView.m | 1 - Riot/Views/RoomTitle/PreviewRoomTitleView.xib | 24 +++++++++++-------- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/Riot/Views/RoomTitle/PreviewRoomTitleView.h b/Riot/Views/RoomTitle/PreviewRoomTitleView.h index 619fc90b70..79fdde1bb1 100644 --- a/Riot/Views/RoomTitle/PreviewRoomTitleView.h +++ b/Riot/Views/RoomTitle/PreviewRoomTitleView.h @@ -24,7 +24,7 @@ @property (weak, nonatomic) IBOutlet UIView *mainHeaderContainer; @property (weak, nonatomic) IBOutlet MXKImageView *roomAvatar; -@property (weak, nonatomic) IBOutlet UILabel *roomTopic; +@property (weak, nonatomic) IBOutlet UITextView *roomTopic; @property (weak, nonatomic) IBOutlet UILabel *roomMembers; @property (weak, nonatomic) IBOutlet UIView *roomMembersDetailsIcon; diff --git a/Riot/Views/RoomTitle/PreviewRoomTitleView.m b/Riot/Views/RoomTitle/PreviewRoomTitleView.m index 1e8888d460..7b723562b3 100644 --- a/Riot/Views/RoomTitle/PreviewRoomTitleView.m +++ b/Riot/Views/RoomTitle/PreviewRoomTitleView.m @@ -67,7 +67,6 @@ -(void)customizeViewRendering self.displayNameTextField.textColor = (self.mxRoom.summary.displayname.length ? kRiotPrimaryTextColor : kRiotSecondaryTextColor); self.roomTopic.textColor = kRiotTopicTextColor; - self.roomTopic.numberOfLines = 0; self.roomMembers.textColor = kRiotColorGreen; diff --git a/Riot/Views/RoomTitle/PreviewRoomTitleView.xib b/Riot/Views/RoomTitle/PreviewRoomTitleView.xib index 2cb75c1551..802efbe335 100644 --- a/Riot/Views/RoomTitle/PreviewRoomTitleView.xib +++ b/Riot/Views/RoomTitle/PreviewRoomTitleView.xib @@ -1,11 +1,11 @@ - + - + @@ -47,22 +47,25 @@ - -