Skip to content

Commit

Permalink
Fixes textView management issue (description), changed constant name
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyLB committed Dec 31, 2019
1 parent fd5175a commit 352cf87
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -23,7 +23,7 @@
#import "TagsData.h"
#import "TagsViewController.h"

CGFloat const kEditImageDetailsWidth = 512.0; // EditImageDetails view width
CGFloat const kEditImageDetailsViewWidth = 512.0;

typedef enum {
EditImageDetailsOrderImageName,
Expand Down Expand Up @@ -208,7 +208,7 @@ -(void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIVie
// On iPad, the form is presented in a popover view
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
CGRect mainScreenBounds = [UIScreen mainScreen].bounds;
self.preferredContentSize = CGSizeMake(kEditImageDetailsWidth, ceil(CGRectGetHeight(mainScreenBounds)*2/3));
self.preferredContentSize = CGSizeMake(kEditImageDetailsViewWidth, ceil(CGRectGetHeight(mainScreenBounds)*2/3));
[self.editImageDetailsTableView setContentInset:UIEdgeInsetsMake(0.0, 0.0, MAX(0.0, tableHeight + navBarHeight - size.height), 0.0)];
} else {
CGFloat statBarHeight = [UIApplication sharedApplication].statusBarFrame.size.height;
Expand Down Expand Up @@ -428,7 +428,7 @@ -(UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSI
cell = [EditImageTextViewTableViewCell new];
}
[cell setupWithImageDetail:self.commonParameters.comment];
cell.cellTextView.delegate = self;
cell.textView.delegate = self;
tableViewCell = cell;
break;
}
Expand Down

0 comments on commit 352cf87

Please sign in to comment.