-
-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: improve cursor following of candidate window
- Loading branch information
1 parent
4559365
commit 9d05290
Showing
1 changed file
with
81 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9d05290
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
对于这几个场景的y,建议做一些修正。因为这个y可能会大于maxY或者小于minY。
建议:
① 对于LEFT, RIGHT这两个,当y>maxY的时候,把位置临时改成UP的y值,这样候选框在屏幕的底部的时候,就不会超出屏幕了。
② 对于UP的两个,当y<minY的时候,建议把位置改为LEFT/RIGHT的y值,这样当候选框在屏幕的顶部的时候,就不会超出屏幕了。
望采纳。
9d05290
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cabins 你仔细看的话会发现这个提交的 151 - 153 行已经做了边界情况限制,所以无需担心。