Skip to content

Commit

Permalink
Missing child_ui updates
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed May 30, 2024
1 parent 6c5aeda commit 58b7062
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/custom_window_frame/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ fn custom_window_frame(ctx: &egui::Context, title: &str, add_contents: impl FnOn
rect
}
.shrink(4.0);
let mut content_ui = ui.child_ui(content_rect, *ui.layout());
let mut content_ui = ui.child_ui(content_rect, *ui.layout(), None);
add_contents(&mut content_ui);
});
}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_viewports/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ fn drop_target<R>(

let available_rect = ui.available_rect_before_wrap();
let inner_rect = available_rect.shrink2(margin);
let mut content_ui = ui.child_ui(inner_rect, *ui.layout());
let mut content_ui = ui.child_ui(inner_rect, *ui.layout(), None);
let ret = body(&mut content_ui);

let outer_rect =
Expand Down

0 comments on commit 58b7062

Please sign in to comment.