Add several missing style attributes in iced_web.

This commit is contained in:
Gabriel Konat 2019-12-16 11:09:02 +01:00
parent 0f2e20f5e5
commit 95988e8e25
5 changed files with 26 additions and 7 deletions

View file

@ -134,6 +134,8 @@ impl<'a, Message> Widget<Message> for Row<'a, Message> {
let width = style::length(self.width);
let height = style::length(self.height);
let justify_content = style::align(self.align_items);
// TODO: Complete styling
div(bump)
.attr(
@ -143,10 +145,12 @@ impl<'a, Message> Widget<Message> for Row<'a, Message> {
)
.attr("style", bumpalo::format!(
in bump,
"width: {}; height: {}; max-width: {}px",
"width: {}; height: {}; max-width: {}px; max-height: {}px; justify-content: {}",
width,
height,
self.max_width
self.max_width,
self.max_height,
justify_content
).into_bump_str()
)
.children(children)