Repository navigation
fix(input): 圆点位置没有任何钳制,文字末尾的坐标直接当成圆点坐标 → 多行文本框滚动后末尾落在可见区外,圆点被画到框外、压住页面其他内容(#669) - #717
Merged
Merged
Conversation
…面其他内容(#669) 文字末尾滚出框的可见区域(边框以内、滚动条以外)时,圆点钳到离它最近的 可见边缘,不隐藏、不换样式(ADR-0006);滚回来后按原有的滚动重算重新贴 末尾。可见区域的计算从回落位置里抽出,回落与钳制共用一份。 Co-Authored-By: zhexuancai-uts <261878103+zhexuancai-uts@users.noreply.github.com>
Co-Authored-By: zhexuancai-uts <261878103+zhexuancai-uts@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
#665 让多行文本框里的圆点贴上文字末尾之后,文字一长、框内滚动,末尾的坐标就落到框的可见区域之外,圆点跟着被画到框外,压在页面其他内容上。
根因
圆点位置直接取镜像测量给出的末尾坐标,代码里没有任何钳制或可见区判断。
修复
验证
pnpm test115 个文件 1423 条全部通过;pnpm typecheck通过;pnpm test:e2e:core93 条通过、2 条跳过。Closes #669