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

在DialogFragment上弹窗,超长内容会被过多裁剪掉 #513

Open
Suguiqiang opened this issue Sep 30, 2024 · 0 comments
Open

在DialogFragment上弹窗,超长内容会被过多裁剪掉 #513

Suguiqiang opened this issue Sep 30, 2024 · 0 comments

Comments

@Suguiqiang
Copy link

  • 系统版本(必须)/ System version (required):Android13
  • 库版本(必须)/ Library version (required):3.2.1
  • 问题代码/截图(可选)/ Problem code or screenshot (optional):
    修改ConstructorApiFragment类的代码,将DemoPopup弹窗的内容给到了900dp,将DemoPopup显示在“请点击我弹出BasePopup”文本下方,但是该显示的x2部分被裁剪。
    curPopup.setPopupGravity(Gravity.CENTER | Gravity.BOTTOM); curPopup.showPopupWindow(v);

screenshot1727679990027

应该是计算错误,在PopupDecorViewProxy类的measureWrappedDecorView方法中,应该是这种情况下,没有算上x1的偏移,所以被掉裁剪了。

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

1 participant