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

@ -130,6 +130,7 @@ where
) -> dodrio::Node<'b> {
use dodrio::builder::*;
let width = style::length(self.width);
let padding_class =
style_sheet.insert(bump, Style::Padding(self.padding));
@ -149,9 +150,10 @@ where
"style",
bumpalo::format!(
in bump,
"background: {}; border-radius: {}px; min-width: {}px",
"background: {}; border-radius: {}px; width:{}; min-width: {}px",
background,
self.border_radius,
width,
self.min_width
)
.into_bump_str(),