Skip to content

Commit f062083

Browse files
authored
Update builder.rs
1 parent 30dbe76 commit f062083

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

crates/egui/src/widgets/text_edit/builder.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::sync::Arc;
22

3-
use emath::{Rect, TSTransform};
3+
use emath::TSTransform;
44
use epaint::{
55
text::{cursor::CCursor, Galley, LayoutJob},
66
StrokeKind,
@@ -729,16 +729,6 @@ impl TextEdit<'_> {
729729
}
730730
}
731731

732-
// Allocate additional space if edits were made this frame that changed the size. This is important so that,
733-
// if there's a ScrollArea, it can properly scroll to the cursor.
734-
let extra_size = galley.size() - rect.size();
735-
if extra_size.x > 0.0 || extra_size.y > 0.0 {
736-
ui.allocate_rect(
737-
Rect::from_min_size(outer_rect.max, extra_size),
738-
Sense::hover(),
739-
);
740-
}
741-
742732
painter.galley(galley_pos, galley.clone(), text_color);
743733

744734
if has_focus {

0 commit comments

Comments
 (0)