mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 21:00:03 -04:00
misc code cleanup
This commit is contained in:
@@ -106,6 +106,7 @@ impl Placer {
|
||||
/// This is what you then pass to `advance_after_rects`.
|
||||
/// Use `justify_and_align` to get the inner `widget_rect`.
|
||||
pub(crate) fn next_space(&self, child_size: Vec2, item_spacing: Vec2) -> Rect {
|
||||
egui_assert!(child_size.is_finite() && child_size.x >= 0.0 && child_size.y >= 0.0);
|
||||
self.region.sanity_check();
|
||||
if let Some(grid) = &self.grid {
|
||||
grid.next_cell(self.region.cursor, child_size)
|
||||
|
||||
Reference in New Issue
Block a user