We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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.menu 中 设置 property.popupCustomAlignment = .bottomCenter property.popupViewSize = CGSize(width: UIScreen.main.bounds.width - 32, height: 200) 会导致,最终的menuView位置不正确 X轴会向左偏移 property.popupViewSize 我设置的一半 暂时解决办法增加 property.popupViewEdgeInsets 的left 值
property.popupCustomAlignment = .bottomCenter
property.popupViewSize = CGSize(width: UIScreen.main.bounds.width - 32, height: 200)
property.popupViewSize
property.popupViewEdgeInsets
The text was updated successfully, but these errors were encountered:
property.popupArrowVertexScaleX = 0.5 就可以了
Sorry, something went wrong.
这样设置X轴不会向左偏移 ,但不幸地是 我刚好使用了popupArrowVertexScaleX 这个参数 来标识箭头所处的位置 并且不等于0.5, 我的值大概是0.95左右 非常接近1 目前似乎没有更好的方法能够解决 箭头所处的位置 popupArrowVertexScaleX = 0.5 可以处理位置偏移问题 但箭头指向不正确 popupArrowVertexScaleX设置正确的值 整体位置会偏移
No branches or pull requests
在您示例代码的 自定义菜单中
FWMenuView.menu 中 设置
property.popupCustomAlignment = .bottomCenter
property.popupViewSize = CGSize(width: UIScreen.main.bounds.width - 32, height: 200)
会导致,最终的menuView位置不正确
X轴会向左偏移
property.popupViewSize
我设置的一半 暂时解决办法增加property.popupViewEdgeInsets
的left 值The text was updated successfully, but these errors were encountered: