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

@ -128,6 +128,8 @@ where
use dodrio::builder::*;
use wasm_bindgen::JsCast;
let width = style::length(self.width);
let max_width = style::length(self.max_width);
let padding_class =
style_sheet.insert(bump, Style::Padding(self.padding));
@ -143,7 +145,9 @@ where
"style",
bumpalo::format!(
in bump,
"font-size: {}px",
"width: {}; max-width: {}; font-size: {}px",
width,
max_width,
self.size.unwrap_or(20)
)
.into_bump_str(),