[ios] Fixed bookmark's category name offset.

This commit is contained in:
VladiMihaylenko 2015-12-14 21:03:24 +03:00
parent b64d2ea58c
commit 163f53e03e

View file

@ -120,9 +120,11 @@ extern NSString * const kBookmarksChangedNotification = @"BookmarksChangedNotifi
[cell layoutIfNeeded];
CGRect const leftR = cell.textLabel.frame;
CGFloat const padding = leftR.origin.x;
CGRect r = CGRectMake(padding + leftR.size.width + padding, leftR.origin.y,
cell.contentView.frame.size.width - 3 * padding - leftR.size.width, leftR.size.height);
UITextField * f = [[UITextField alloc] initWithFrame:r];
UITextField * f = [[UITextField alloc] initWithFrame:{{padding + leftR.size.width + padding + leftR.origin.x,
leftR.origin.y},
{cell.contentView.frame.size.width - 3 * padding - leftR.size.width,
leftR.size.height}}];
f.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
f.enablesReturnKeyAutomatically = YES;
f.returnKeyType = UIReturnKeyDone;