mirror of
https://github.com/emilk/egui.git
synced 2026-09-03 07:10:04 -04:00
Fix TexEdit clipping half the cursor when in the first column
Closes https://github.com/emilk/egui/issues/1449
This commit is contained in:
@@ -419,7 +419,7 @@ impl<'t> TextEdit<'t> {
|
|||||||
};
|
};
|
||||||
let mut response = ui.interact(rect, id, sense);
|
let mut response = ui.interact(rect, id, sense);
|
||||||
let text_clip_rect = rect;
|
let text_clip_rect = rect;
|
||||||
let painter = ui.painter_at(text_clip_rect);
|
let painter = ui.painter_at(text_clip_rect.expand(1.0)); // expand to avoid clipping cursor
|
||||||
|
|
||||||
if interactive {
|
if interactive {
|
||||||
if let Some(pointer_pos) = ui.ctx().pointer_interact_pos() {
|
if let Some(pointer_pos) = ui.ctx().pointer_interact_pos() {
|
||||||
|
|||||||
Reference in New Issue
Block a user