diff options
Diffstat (limited to 'web')
| -rw-r--r-- | web/src/style.rs | 2 | ||||
| -rw-r--r-- | web/src/widget/image.rs | 2 | 
2 files changed, 2 insertions, 2 deletions
diff --git a/web/src/style.rs b/web/src/style.rs index 2fb8602a..4f72b22c 100644 --- a/web/src/style.rs +++ b/web/src/style.rs @@ -139,7 +139,7 @@ pub fn length(length: Length) -> String {      match length {          Length::Shrink => String::from("auto"),          Length::Units(px) => format!("{}px", px), -        Length::Fill => String::from("100%"), +        Length::Fill | Length::FillPortion(_) => String::from("100%"),      }  } diff --git a/web/src/widget/image.rs b/web/src/widget/image.rs index ed8b7ecf..413b663e 100644 --- a/web/src/widget/image.rs +++ b/web/src/widget/image.rs @@ -67,7 +67,7 @@ impl<Message> Widget<Message> for Image {          match self.width {              Length::Shrink => {} -            Length::Fill => { +            Length::Fill | Length::FillPortion(_) => {                  image = image.attr("width", "100%");              }              Length::Units(px) => {  | 
