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

横竖屏切换没有正确处理 #41

Open
zdiovo opened this issue Jun 14, 2019 · 1 comment
Open

横竖屏切换没有正确处理 #41

zdiovo opened this issue Jun 14, 2019 · 1 comment
Assignees
Labels
bug Something isn't working chinese中文

Comments

@zdiovo
Copy link

zdiovo commented Jun 14, 2019

✔️ Issue Checklist

✍🏻 Issue Description

let actions = [
    PopMenuDefaultAction(title: "Some Text, Some Text, Some Text, Some Text, Some Text, Some Text"),
    PopMenuDefaultAction(title: "Some Text"),
    PopMenuDefaultAction(title: "Short"),
    PopMenuDefaultAction(title: "A Longer Text")
]
let popMenu = PopMenuViewController(actions: actions)
present(popMenu, animated: true, completion: nil)

运行在横屏状态下,UI显示正常,
然后切换到竖屏,显示就异常了
导致UI显示异常的原因主应该要是没有考虑title太长的情况
当title太长的情况,建议title可以像跑马灯一样滚动显示

💻 Environment

  • iOS Version: [12.2]
  • Xcode Version: [10.2.1]
  • Device(s): [iPhone XS Max]
  • Simulator?: ☑️
@CaliCastle CaliCastle self-assigned this Jun 14, 2019
@CaliCastle CaliCastle added bug Something isn't working chinese中文 labels Jun 14, 2019
@CaliCastle
Copy link
Owner

感谢提出orientation的问题,暂时PopMenu没有对横竖屏切换的方法进行监听,所以导致出现的unexpected behavior。下一个更新我会加上,thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working chinese中文
Projects
None yet
Development

No branches or pull requests

2 participants