From 38d26f002887840c4303426f5f87a743ddfd0813 Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Mon, 7 Jul 2025 13:12:30 +0200 Subject: [PATCH] Replace deprecated egui function --- src/file_editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file_editor.rs b/src/file_editor.rs index 952a015..251ca02 100644 --- a/src/file_editor.rs +++ b/src/file_editor.rs @@ -170,7 +170,7 @@ impl FileEditor { dragger_rect.set_height(item_response.response.rect.height()); // Controls for moving the buffer item - ui.allocate_new_ui( + ui.scope_builder( UiBuilder::new() .max_rect(dragger_rect) .layout(Layout::top_down(Align::Center)),