From 26c0a38bb0fca637584fe52cd9e8aa29e48a39bb Mon Sep 17 00:00:00 2001 From: Joscha <joscha@virtual-artz.de> Date: Mon, 13 Mar 2017 18:43:13 +0100 Subject: [PATCH] Collapsing token filed works; showing all receivers; not showing a keyboard; not showing space for a keyboard; expanding cell when VENTokenField grows --- Pods/VENTokenField/VENTokenField/VENTokenField.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pods/VENTokenField/VENTokenField/VENTokenField.m b/Pods/VENTokenField/VENTokenField/VENTokenField.m index fdf0eb0..c593343 100644 --- a/Pods/VENTokenField/VENTokenField/VENTokenField.m +++ b/Pods/VENTokenField/VENTokenField/VENTokenField.m @@ -264,7 +264,7 @@ static const CGFloat VENTokenFieldDefaultMaxHeight = 2000.0;//150.0; - (void)layoutInputTextFieldWithCurrentX:(CGFloat *)currentX currentY:(CGFloat *)currentY clearInput:(BOOL)clearInput { CGFloat inputTextFieldWidth = self.scrollView.contentSize.width - *currentX; - if (inputTextFieldWidth < self.minInputWidth) { + if (!_readOnly && inputTextFieldWidth < self.minInputWidth) { inputTextFieldWidth = self.scrollView.contentSize.width; *currentY += [self heightForToken]; *currentX = 0; @@ -377,7 +377,7 @@ static const CGFloat VENTokenFieldDefaultMaxHeight = 2000.0;//150.0; if (!_toLabel) { _toLabel = [[UILabel alloc] initWithFrame:CGRectZero]; _toLabel.textColor = self.toLabelTextColor; - _toLabel.font = [UIFont systemFontOfSize: 17.0];//[UIFont fontWithName:@"HelveticaNeue" size:15.5]; + _toLabel.font = [UIFont systemFontOfSize: 15.0];//[UIFont fontWithName:@"HelveticaNeue" size:15.5]; _toLabel.x = 0; [_toLabel sizeToFit]; [_toLabel setHeight:[self heightForToken]]; -- GitLab