summaryrefslogtreecommitdiffstats
path: root/examples/bezier_tool
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-28 04:41:25 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-28 04:41:25 +0200
commit7f1e7aea07bb448471470093a47898b059d940d3 (patch)
tree6820b758ed0850498f1aa18599d1efeb1a541a85 /examples/bezier_tool
parente65585ae17bf2fae1bbad1cde839d6f767a29b82 (diff)
downloadiced-7f1e7aea07bb448471470093a47898b059d940d3.tar.gz
iced-7f1e7aea07bb448471470093a47898b059d940d3.tar.bz2
iced-7f1e7aea07bb448471470093a47898b059d940d3.zip
Remove unnecessary `Container` in `bezier_tool`
Diffstat (limited to 'examples/bezier_tool')
-rw-r--r--examples/bezier_tool/src/main.rs13
1 files changed, 3 insertions, 10 deletions
diff --git a/examples/bezier_tool/src/main.rs b/examples/bezier_tool/src/main.rs
index a00a1005..5473bc07 100644
--- a/examples/bezier_tool/src/main.rs
+++ b/examples/bezier_tool/src/main.rs
@@ -1,7 +1,6 @@
//! This example showcases an interactive `Canvas` for drawing Bézier curves.
use iced::{
- button, Align, Button, Column, Container, Element, Length, Sandbox,
- Settings, Text,
+ button, Align, Button, Column, Element, Length, Sandbox, Settings, Text,
};
pub fn main() {
@@ -49,7 +48,7 @@ impl Sandbox for Example {
}
fn view(&mut self) -> Element<Message> {
- let content = Column::new()
+ Column::new()
.padding(20)
.spacing(20)
.align_items(Align::Center)
@@ -63,13 +62,7 @@ impl Sandbox for Example {
Button::new(&mut self.button_state, Text::new("Clear"))
.padding(8)
.on_press(Message::Clear),
- );
-
- Container::new(content)
- .width(Length::Fill)
- .height(Length::Fill)
- .center_x()
- .center_y()
+ )
.into()
}
}