fix(editor): prevent incorrect scroll position when opening files#459
Conversation
log: The resizeEvent "keep at bottom" logic triggers when maximum()==value()==0 during widget creation with empty document, causing a deferred setValue(maximum()) to scroll the viewport to the wrong position after content is loaded. Bug: https://pms.uniontech.com/bug-view-358723.html
deepin pr auto review这段代码修改主要涉及两个文件的变更,分别处理了文本编辑器在窗口大小调整和内容加载时的行为。下面我将从语法逻辑、代码质量、代码性能和代码安全四个方面进行审查: 1. 文件:
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: LiHua000, max-lvs The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/merge |
log: The resizeEvent "keep at bottom" logic triggers when
maximum()==value()==0 during widget creation with empty
document, causing a deferred setValue(maximum()) to scroll
the viewport to the wrong position after content is loaded.
Bug: https://pms.uniontech.com/bug-view-358723.html