Files
ElyOffice/tasks/reviews/C14.12-r2.md
T

8 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
FAIL
1. `reference/Ely-GPUI-Components/src/editor/view.rs:296`:源码打字机的上下半屏 padding 挤掉了 `uniform_list` 用于计算可见行的视口高度,居中行之后的内容不再绘制。120 行非空源码中把第 60 行(从零计)居中,下一行仍在窗口内却没有布局,下半屏留白。探针 `probe_source_rows_below_the_center_are_drawn` 实测当前行在 y=530.5px,下一行的绘制边界为 None。应让两端滚动余量属于内容,而不缩掉列表的可见视口,补上居中行上下正文均正常绘制的测试。证据:`.work/C14.12-r2/component-probes-final.log`。
2. `reference/Ely-GPUI-Components/src/editor/view.rs:323`:加入打字机留白后,文本坐标仍以未含留白的正文区顶部为原点,平台文本查询与实际绘制错开半屏。1080px 高窗口中源码第 60 行实际在 y=530.5px,`bounds_for_range` 却给输入法 y=-9.5px;对实际行上的点调用 `character_index_for_point` 返回第 88 行。输入法候选框和系统文本定位因此落在错误位置。应让绘制、文本到窗口及窗口到文本的换算共用含留白的内容原点,并覆盖两种平台查询。探针 `probe_source_ime_anchor_matches_the_drawn_caret`、`probe_source_platform_point_maps_to_the_drawn_line` 均失败。证据:`.work/C14.12-r2/component-probes-final.log`。
3. `reference/Ely-GPUI-Components/src/documents/document/look.rs:101`:居中缓存没有考虑模式切换尚未完成的滚动定位;打字机居中后,恢复顶行的帧回调又覆盖滚动位置,相同的缓存随后阻止纠正。60 段文档在源码模式开启打字机、把插入点放到第 100 行,再切到可视模式,当前第 50 块偏离中心 78.5px,额外运行八帧仍不变。应在切换模式的滚动定位完成后按最终布局居中,或在定位完成时使居中缓存失效,并补上源码切回可视的回归测试。探针 `probe_visual_source_switch_centers_the_caret_block` 失败。证据:`.work/C14.12-r2/component-probes-final.log`。