File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
crates/egui/src/widgets/text_edit Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 11use std:: sync:: Arc ;
22
3- use emath:: { Rect , TSTransform } ;
3+ use emath:: TSTransform ;
44use 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 {
You can’t perform that action at this time.
0 commit comments