Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FWMenuView 在设置popupViewSize 及bottomCenter 显示错误 #38

Open
ZNLHH opened this issue Nov 16, 2020 · 2 comments
Open

FWMenuView 在设置popupViewSize 及bottomCenter 显示错误 #38

ZNLHH opened this issue Nov 16, 2020 · 2 comments

Comments

@ZNLHH
Copy link

ZNLHH commented Nov 16, 2020

在您示例代码的 自定义菜单中
FWMenuView.menu 中 设置
property.popupCustomAlignment = .bottomCenter
property.popupViewSize = CGSize(width: UIScreen.main.bounds.width - 32, height: 200)
会导致,最终的menuView位置不正确
X轴会向左偏移 property.popupViewSize 我设置的一半 暂时解决办法增加 property.popupViewEdgeInsets 的left 值

@choiceyou
Copy link
Owner

property.popupArrowVertexScaleX = 0.5 就可以了

@ZNLHH
Copy link
Author

ZNLHH commented Nov 24, 2020

property.popupArrowVertexScaleX = 0.5 就可以了

这样设置X轴不会向左偏移 ,但不幸地是 我刚好使用了popupArrowVertexScaleX 这个参数 来标识箭头所处的位置 并且不等于0.5, 我的值大概是0.95左右 非常接近1
目前似乎没有更好的方法能够解决 箭头所处的位置
popupArrowVertexScaleX = 0.5 可以处理位置偏移问题 但箭头指向不正确
popupArrowVertexScaleX设置正确的值 整体位置会偏移

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants