From 95988e8e251d5e416698d3883f85a469daed6365 Mon Sep 17 00:00:00 2001 From: Gabriel Konat Date: Mon, 16 Dec 2019 11:09:02 +0100 Subject: Add several missing style attributes in iced_web. --- web/src/widget/column.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'web/src/widget/column.rs') diff --git a/web/src/widget/column.rs b/web/src/widget/column.rs index cc850f5f..e0e49148 100644 --- a/web/src/widget/column.rs +++ b/web/src/widget/column.rs @@ -133,6 +133,8 @@ impl<'a, Message> Widget for Column<'a, Message> { let width = style::length(self.width); let height = style::length(self.height); + let align_items = style::align(self.align_items); + // TODO: Complete styling div(bump) .attr( @@ -142,10 +144,12 @@ impl<'a, Message> Widget for Column<'a, Message> { ) .attr("style", bumpalo::format!( in bump, - "width: {}; height: {}; max-width: {}px", + "width: {}; height: {}; max-width: {}px; max-height: {}px; align-items: {}", width, height, - self.max_width + self.max_width, + self.max_height, + align_items ).into_bump_str() ) .children(children) -- cgit