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

bool ScrollableBox::IsAtEnd() 在特定情况下返回值不准的问题 #500

Open
cloud14k opened this issue May 14, 2024 · 1 comment
Open

Comments

@cloud14k
Copy link

问题现象

当我把一个session_box放到session_form中时,我把滚动条拉到最下,在SessionBox::AddNewMsg这个函数中,bool at_end = msg_list_->IsAtEnd(); at_end返回false。 session_box在plugin_page中时,这个函数正常,不知道什么问题。 出现异常时,GetScrollRange().cy 比GetScrollPos().cy大。

预期结果

希望在任何情况下,IsAtEnd()都能返回正确的值。

重现步骤

@nmgwddj
Copy link
Collaborator

nmgwddj commented May 24, 2024

该项目为通用的 duilib 框架,与业务场景无关。您可以基于 NIM duilib 框架提供与业务无关的重现代码。避免业务场景上的混淆,这样更容易排查问题。

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