Add bottom margin to the outline view

This commit is contained in:
Max Brunsfeld 2022-01-14 11:01:20 -08:00
parent 5de5e4b6f2
commit dd8e5ee543
3 changed files with 18 additions and 19 deletions

View file

@ -52,6 +52,11 @@ impl Container {
self
}
pub fn with_margin_bottom(mut self, margin: f32) -> Self {
self.style.margin.bottom = margin;
self
}
pub fn with_margin_left(mut self, margin: f32) -> Self {
self.style.margin.left = margin;
self