summaryrefslogtreecommitdiffstats
path: root/examples/scroll.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-11 05:37:51 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-11 05:37:51 +0100
commitd4d14b68f47e9527554a728ebbba9b840832626a (patch)
treec37dc77445e96d39b119aa1cadb46fa738743795 /examples/scroll.rs
parentceb02f4a36769c488c2525db2fb73f092a6c2706 (diff)
downloadiced-d4d14b68f47e9527554a728ebbba9b840832626a.tar.gz
iced-d4d14b68f47e9527554a728ebbba9b840832626a.tar.bz2
iced-d4d14b68f47e9527554a728ebbba9b840832626a.zip
Remove `padding` from `Container` for now
Diffstat (limited to 'examples/scroll.rs')
-rw-r--r--examples/scroll.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/scroll.rs b/examples/scroll.rs
index 5a725f0c..98206268 100644
--- a/examples/scroll.rs
+++ b/examples/scroll.rs
@@ -1,6 +1,6 @@
use iced::{
- button, scrollable, Align, Application, Button, Column, Element, Image,
- Justify, Length, Scrollable, Text,
+ button, scrollable, Align, Application, Button, Column, Container, Element,
+ Image, Length, Scrollable, Text,
};
pub fn main() {
@@ -65,11 +65,10 @@ impl Application for Example {
.border_radius(5),
);
- Column::new()
+ Container::new(content)
+ .width(Length::Fill)
.height(Length::Fill)
- .justify_content(Justify::Center)
- .padding(20)
- .push(content)
+ .center_y()
.into()
}
}