egui/crates
Juan Campa 4f7f23ef5e
Fix cursor clipping in `TextEdit` inside a `ScrollArea` (#3660)
<!--
Please read the "Making a PR" section of
[`CONTRIBUTING.md`](https://github.com/emilk/egui/blob/master/CONTRIBUTING.md)
before opening a Pull Request!

* Keep your PR:s small and focused.
* If applicable, add a screenshot or gif.
* If it is a non-trivial addition, consider adding a demo for it to
`egui_demo_lib`, or a new example.
* Do NOT open PR:s from your `master` branch, as that makes it hard for
maintainers to add commits to your PR.
* Remember to run `cargo fmt` and `cargo cranky`.
* Open the PR as a draft until you have self-reviewed it and run
`./scripts/check.sh`.
* When you have addressed a PR comment, mark it as resolved.

Please be patient! I will review your PR, but my time is limited!
-->

* Closes #1531

### Before
Notice how the cursor hides after third enter and when the line is long.


https://github.com/user-attachments/assets/8e45736e-d6c7-4dc6-94d0-213188c199ff

### After
Cursor is always visible


https://github.com/user-attachments/assets/43200683-3524-471b-990a-eb7b49385fa9


- `ScrollArea` now checks if there's a `scroll_target` in `begin`, if
there is, it saves it because it's not from its children, then restore
it in `end`.
- `TextEdit` now allocates additional space if its galley grows during
the frame. This is needed so that any surrounding `ScrollArea` can bring
the cursor to view, otherwise the cursor lays outside the the
`ScrollArea`'s `content_ui`.
2024-12-02 09:29:06 +01:00
..
ecolor Create gray -> grey doc aliases (#5362) 2024-11-11 13:21:58 +01:00
eframe Update MSRV to Rust 1.79 (#5421) 2024-12-01 18:58:35 +01:00
egui Fix cursor clipping in `TextEdit` inside a `ScrollArea` (#3660) 2024-12-02 09:29:06 +01:00
egui-wgpu Update MSRV to Rust 1.79 (#5421) 2024-12-01 18:58:35 +01:00
egui-winit Update accesskit to 0.17 (#5372) 2024-11-26 15:16:08 +01:00
egui_demo_app wgpu: Bump to wgpu 23.0.0 and wasm-bindgen to 0.2.95 (#5330) 2024-10-30 18:53:22 +01:00
egui_demo_lib Update MSRV to Rust 1.79 (#5421) 2024-12-01 18:58:35 +01:00
egui_extras Use proper `image` crate URI and MIME support detection (#5324) 2024-11-01 13:33:12 +01:00
egui_glow Update glow to 0.16 (#5395) 2024-11-26 21:00:34 +01:00
egui_kittest Update accesskit to 0.17 (#5372) 2024-11-26 15:16:08 +01:00
egui_plot Move `egui_plot` to its own repo (#4828) 2024-07-15 18:45:19 +02:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath Add new `Rect::intersects_ray_from_center` method (#5415) 2024-12-02 09:20:59 +01:00
epaint Update MSRV to Rust 1.79 (#5421) 2024-12-01 18:58:35 +01:00
epaint_default_fonts Release 0.29.1 - Bug fixes 2024-10-01 10:08:21 +02:00