FWPopupView icon indicating copy to clipboard operation
FWPopupView copied to clipboard

FWMenuView 在设置popupViewSize 及bottomCenter 显示错误

Open ZNLHH opened this issue 4 years ago • 2 comments

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

ZNLHH avatar Nov 16 '20 08:11 ZNLHH

property.popupArrowVertexScaleX = 0.5 就可以了

choiceyou avatar Nov 17 '20 00:11 choiceyou

property.popupArrowVertexScaleX = 0.5 就可以了

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

ZNLHH avatar Nov 24 '20 06:11 ZNLHH