From d4d14b68f47e9527554a728ebbba9b840832626a Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 11 Nov 2019 05:37:51 +0100 Subject: Remove `padding` from `Container` for now --- core/src/widget/container.rs | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'core/src') diff --git a/core/src/widget/container.rs b/core/src/widget/container.rs index dc1aab08..9bc92fe0 100644 --- a/core/src/widget/container.rs +++ b/core/src/widget/container.rs @@ -8,7 +8,6 @@ pub struct Container { pub height: Length, pub max_width: u32, pub max_height: u32, - pub padding: u16, pub horizontal_alignment: Align, pub vertical_alignment: Align, pub content: Element, @@ -29,7 +28,6 @@ impl Container { max_height: u32::MAX, horizontal_alignment: Align::Start, vertical_alignment: Align::Start, - padding: 0, content: content.into(), } } @@ -66,14 +64,6 @@ impl Container { self } - /// Sets the padding of the [`Container`]. - /// - /// [`Container`]: struct.Container.html - pub fn padding(mut self, units: u16) -> Self { - self.padding = units; - self - } - /// Centers the contents in the horizontal axis of the [`Container`]. /// /// [`Container`]: struct.Container.html -- cgit