Deng Liu and dengliu
8ea2787490
fix(editor): keep selection within its own row when font glyphs exceed line height ( #2674 )
...
With a font whose glyph box is taller than the line height (e.g. font size 18–20 with the default 22px line height), selecting text on one line also painted the rows above and below: growToLineBoxes probed the rows at the glyph box's top and bottom edges, which then fell in the neighbouring rows, and .cm-openidea-selected painted an unclipped inline background at glyph height. Outer rows are now resolved at each marker's vertical midpoint and row seams align to the line boxes (block widgets and zero-width trailing markers handled), and the inline selection background is capped at 1lh in the editor, notebook cells and diff/merge viewers, with a plain colour fallback where lh is unsupported.
Co-authored-by: dengliu <5108773+dengliu@users.noreply.github.com >
2026-11-11 15:54:26 +08:00
..
2026-11-10 19:50:46 +08:00
2026-11-11 08:05:35 +08:00
2026-11-10 01:46:12 +08:00
2026-11-11 15:20:09 +08:00
2026-11-01 11:31:53 +08:00
2026-11-07 11:13:09 +08:00
2026-11-09 19:23:05 +08:00
2026-11-09 01:15:23 +08:00
2026-11-04 12:21:03 +08:00
2026-11-10 03:01:00 +08:00
2026-11-08 20:36:07 +08:00
2026-11-06 14:14:44 +08:00
2026-11-11 01:42:25 +08:00
2026-11-11 00:12:24 +08:00
2026-11-06 14:14:44 +08:00
2026-11-08 16:16:02 +08:00
2026-10-30 19:25:41 +08:00
2026-11-06 12:23:39 +08:00
2026-11-06 12:23:39 +08:00
2026-11-06 12:23:39 +08:00
2026-11-03 23:39:26 +08:00
2026-11-02 23:41:21 +08:00
2026-11-10 03:25:53 +08:00
2026-11-11 14:43:59 +08:00
2026-11-09 15:20:49 +08:00
2026-11-08 16:15:05 +08:00
2026-11-10 05:22:56 +08:00
2026-11-04 22:52:48 +08:00
2026-11-04 12:40:45 +08:00
2026-11-10 03:25:21 +08:00
2026-11-10 23:16:32 +08:00
2026-11-10 23:16:32 +08:00
2026-11-10 23:16:32 +08:00
2026-11-10 03:23:27 +08:00
2026-11-10 03:00:15 +08:00
2026-11-09 17:03:21 +08:00
2026-11-11 15:54:26 +08:00
2026-11-10 09:20:33 +08:00
2026-11-10 23:41:29 +08:00
2026-11-04 22:52:48 +08:00
2026-10-30 15:09:55 +08:00
2026-11-07 10:37:24 +08:00
2026-11-07 00:26:42 +08:00
2026-11-10 03:48:31 +08:00
2026-11-08 22:28:20 +08:00
2026-11-08 22:28:20 +08:00
2026-11-08 22:28:20 +08:00
2026-11-04 22:11:38 +08:00
2026-11-08 21:52:18 +08:00
2026-11-08 21:52:18 +08:00
2026-11-09 01:05:45 +08:00
2026-11-05 12:59:38 +08:00
2026-11-08 20:53:51 +08:00
2026-11-08 21:56:26 +08:00
2026-11-08 21:56:26 +08:00
2026-11-08 21:56:26 +08:00
2026-11-10 23:44:09 +08:00
2026-11-10 03:23:27 +08:00
2026-11-07 10:36:15 +08:00
2026-11-04 22:52:48 +08:00
2026-11-11 00:31:43 +08:00
2026-11-03 20:31:57 +08:00
2026-11-05 12:19:47 +08:00
2026-11-09 20:22:12 +08:00
2026-11-08 08:38:42 +08:00
2026-11-08 03:18:44 +08:00
2026-11-08 03:18:44 +08:00
2026-11-08 03:18:44 +08:00
2026-11-07 22:59:21 +08:00
2026-11-08 02:37:26 +08:00
2026-11-10 23:16:16 +08:00
2026-11-07 22:35:36 +08:00
2026-11-08 02:04:10 +08:00
2026-11-08 16:17:47 +08:00
2026-11-08 21:28:06 +08:00
2026-11-11 07:07:40 +08:00
2026-11-05 23:38:03 +08:00
2026-11-05 21:53:22 +08:00
2026-11-05 23:38:03 +08:00
2026-11-08 04:48:14 +08:00
2026-11-10 04:27:36 +08:00
2026-11-10 23:41:15 +08:00
2026-11-10 03:46:22 +08:00
2026-11-08 01:13:13 +08:00
2026-11-11 09:39:59 +08:00
2026-11-08 16:15:16 +08:00
2026-11-08 21:27:12 +08:00
2026-11-08 21:27:12 +08:00
2026-11-08 21:27:12 +08:00
2026-11-11 01:06:56 +08:00
2026-11-11 01:01:09 +08:00
2026-11-10 03:46:22 +08:00
2026-11-08 16:15:20 +08:00
2026-11-08 16:15:09 +08:00
2026-11-10 19:50:46 +08:00
2026-11-08 22:33:22 +08:00
2026-11-05 21:30:14 +08:00
2026-11-11 12:41:33 +08:00
2026-11-10 23:41:22 +08:00
2026-11-05 23:31:14 +08:00
2026-11-11 00:06:59 +08:00
2026-10-31 05:20:39 +08:00
2026-10-31 05:20:39 +08:00
2026-10-31 05:20:39 +08:00
2026-10-22 18:55:10 +08:00
2026-11-10 23:41:06 +08:00
2026-11-10 00:16:38 +08:00
2026-11-02 20:09:27 +08:00
2026-11-04 09:39:32 +08:00
2026-11-11 01:07:40 +08:00