Skip to content

Commit

Permalink
expanded click area of cancel/pick buttons (beefe#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
ejkkan authored and xwenliang committed Jan 8, 2018
1 parent ff74397 commit 6cd818f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ios/RCTBEEPickerManager/BzwPicker.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ -(void)makeuiWith:(NSArray *)topbgColor With:(NSArray *)bottombgColor With:(NSAr
[self addSubview:view];

self.leftBtn = [UIButton buttonWithType:UIButtonTypeCustom];
self.leftBtn.frame = CGRectMake(10, 5, 90, 30);
self.leftBtn.frame = CGRectMake(0, 0, 90, 40);
[self.leftBtn setTitleEdgeInsets:UIEdgeInsetsMake(0, 10.0, 0, 0)];
[self.leftBtn setTitle:self.leftStr forState:UIControlStateNormal];
[self.leftBtn setFont:[UIFont systemFontOfSize:[_pickerToolBarFontSize integerValue]]];
self.leftBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
Expand All @@ -61,7 +62,8 @@ -(void)makeuiWith:(NSArray *)topbgColor With:(NSArray *)bottombgColor With:(NSAr
view.backgroundColor=[self colorWith:topbgColor];

self.rightBtn = [UIButton buttonWithType:UIButtonTypeCustom];
self.rightBtn.frame = CGRectMake(view.frame.size.width-100,5, 90, 30);
self.rightBtn.frame = CGRectMake(view.frame.size.width-90,0, 90, 40);
[self.rightBtn setTitleEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 10.0)];
[self.rightBtn setTitle:self.rightStr forState:UIControlStateNormal];
self.rightBtn.contentHorizontalAlignment=UIControlContentHorizontalAlignmentRight;

Expand Down

0 comments on commit 6cd818f

Please sign in to comment.