forked from 1b-agent/opencadstudio-upstream
style: apply cargo fmt across workspace
This commit is contained in:
1 parent
85710e5454
commit
9cf9ff2c5c
531 files changed
+57740
-33906
No files matched your search
+7
-10
@@ -47,11 +47,10 @@ impl Widget<Message, Theme, Renderer> for WideMenu<'_> {
|
||||
renderer: &Renderer,
|
||||
limits: &layout::Limits,
|
||||
) -> layout::Node {
|
||||
let content = self.content.as_widget_mut().layout(
|
||||
&mut tree.children[0],
|
||||
renderer,
|
||||
limits,
|
||||
);
|
||||
let content = self
|
||||
.content
|
||||
.as_widget_mut()
|
||||
.layout(&mut tree.children[0], renderer, limits);
|
||||
|
||||
layout::Node::with_children(content.size(), vec![content])
|
||||
}
|
||||
@@ -142,11 +141,9 @@ impl Widget<Message, Theme, Renderer> for WideMenu<'_> {
|
||||
let (state, children) = (&mut tree.state, &mut tree.children);
|
||||
let state = state.downcast_mut::<State>();
|
||||
|
||||
state.menu_layout = layout::Node::new(Size::new(
|
||||
self.menu_width.max(bounds.width),
|
||||
bounds.height,
|
||||
))
|
||||
.move_to(Point::new(bounds.x, bounds.y));
|
||||
state.menu_layout =
|
||||
layout::Node::new(Size::new(self.menu_width.max(bounds.width), bounds.height))
|
||||
.move_to(Point::new(bounds.x, bounds.y));
|
||||
|
||||
self.content.as_widget_mut().overlay(
|
||||
&mut children[0],
|
||||
|
||||
Reference in new issue
Block a user