mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Deprecate Ui::allocate_new_ui in favor of Ui::scope_builder (#5764)
They had the same signature and slightly different implementations, now it's streamlined
This commit is contained in:
@@ -114,7 +114,7 @@ fn title_bar_ui(ui: &mut egui::Ui, title_bar_rect: eframe::epaint::Rect, title:
|
||||
ui.ctx().send_viewport_cmd(ViewportCommand::StartDrag);
|
||||
}
|
||||
|
||||
ui.allocate_new_ui(
|
||||
ui.scope_builder(
|
||||
UiBuilder::new()
|
||||
.max_rect(title_bar_rect)
|
||||
.layout(egui::Layout::right_to_left(egui::Align::Center)),
|
||||
|
||||
Reference in New Issue
Block a user