egui/crates
PrimmR 37b1e1504d
Fix: hint text follows the alignment set on the `TextEdit` (#4889)
Updated the `show_content` method of the `TextEdit` widget so that the
requested text alignment (if any) is also applied to the hint text.

Currently, hint text is always aligned to the top left of the widget,
which may be inconsistent with the actual location of text entered by
the user. I think it's more intuitive for the hint text to be positioned
as if the user had entered the same text themselves.

Here are some comparisons of the difference between how the hint text
and the entered text looks, before and after this change:

### Previous Behaviour

![Prev](https://github.com/user-attachments/assets/8cd7858f-833e-4946-84f1-ff1ede60c64d)


### Updated Behaviour

![Update](https://github.com/user-attachments/assets/2596dd44-d6f9-4376-9012-5b074fc2cdea)

* [x] I have followed the instructions in the PR template
2024-07-30 21:03:52 +02:00
..
ecolor Remove some debug asserts (#4826) 2024-07-15 11:20:22 +02:00
eframe Clarified `eframe::run_simple_native()` persistence (#4846) 2024-07-30 21:01:10 +02:00
egui Fix: hint text follows the alignment set on the `TextEdit` (#4889) 2024-07-30 21:03:52 +02:00
egui-wgpu Workaround for wgpu crash when surface is dropped last (#4876) 2024-07-26 10:10:23 +02:00
egui-winit Release 0.28.1 - Tooltip tweaks 2024-07-05 12:09:21 +02:00
egui_demo_app upgrade to wgpu 22.0.0 (#4847) 2024-07-19 10:05:56 +02:00
egui_demo_lib Move `egui_plot` to its own repo (#4828) 2024-07-15 18:45:19 +02:00
egui_extras Return `ScrollAreaOutput` from `Table::body` (#4829) 2024-07-15 20:49:41 +02:00
egui_glow Introduce dithering to reduce banding (#4497) 2024-07-08 09:57:11 +02: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 `Rect::scale_from_center` (#4673) 2024-07-15 19:54:35 +02:00
epaint epaint: add some missing inline docs (#4815) 2024-07-11 11:52:27 +02:00