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

content 需要增加一个最大宽度,否则在 trigger 靠近屏幕边缘时过宽内容会导致尖定位错误 #12

Open
ex90rts opened this issue Dec 17, 2018 · 4 comments
Assignees

Comments

@ex90rts
Copy link
Contributor

ex90rts commented Dec 17, 2018

rt,效果如图:
screen shot 2018-12-17 at 12 13 13 pm

@ex90rts ex90rts self-assigned this Dec 17, 2018
@eternalsky
Copy link
Member

eternalsky commented Dec 18, 2018

这个不是靠限制 content 宽度能控制的,建议参考一下 antd 里对于箭头的处理。另,预感很强的情况下,应该使用侧面箭头来,侧面箭头位移是绝对 px,不受 content 的影响。

@ex90rts
Copy link
Contributor Author

ex90rts commented Dec 18, 2018

@eternalsky antd 貌似是通过 max-width 控制的

screen shot 2018-12-18 at 9 38 14 am

@eternalsky
Copy link
Member

@ex90rts max-width 是可以有的,但不是为了解决这个问题,他是为了一些不太好的展示形式,做的限制。antd 有一个自动计算箭头位置到 trigger 中央的属性,可以看下。

@ex90rts
Copy link
Contributor Author

ex90rts commented Jan 9, 2019

设计规范定义为 320PX,考虑到业务兼容问题,暂时先 HOLD

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