Skip to content

Commit 9bbc659

Browse files
committed
adjust default value of arrowX
1 parent a050a4a commit 9bbc659

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

FEPopupMenuController/FEPopupMenuController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
@property (nonatomic, assign) CGFloat contentViewCornerRadius;
6262

6363
/**
64-
* arrow view x position , default is 70% of contentViewWidth
64+
* arrow view x position , default is (contentViewWidth - 25.0)
6565
*/
6666
@property (nonatomic, assign) CGFloat arrowX;
6767

FEPopupMenuController/FEPopupMenuController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ -(instancetype)initWithItems:(NSArray<FEPopupMenuItem *> *)items {
3333
self.contentViewPosition = CGPointMake(0,0);
3434
self.contentViewBackgroundColor = [UIColor whiteColor];
3535
self.contentViewCornerRadius = 8.0;
36-
self.arrowX = self.contentViewWidth * 0.7;
36+
self.arrowX = self.contentViewWidth - 25.0;
3737
self.isShowArrow = NO;
3838
}
3939
return self;

0 commit comments

Comments
 (0)