Skip to content
Snippets Groups Projects
Commit 26c0a38b authored by Joscha's avatar Joscha
Browse files

Collapsing token filed works; showing all receivers; not showing a keyboard;...

Collapsing token filed works; showing all receivers; not showing a keyboard; not showing space for a keyboard; expanding cell when VENTokenField grows
parent 932580f2
No related branches found
No related tags found
No related merge requests found
......@@ -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]];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment