diff options
author | 2019-12-31 10:35:51 +0100 | |
---|---|---|
committer | 2019-12-31 10:35:51 +0100 | |
commit | eb8866007456c7ea9efb5449096b0aa15b66ba9b (patch) | |
tree | 68004fd1f6ad89b4fdf2b37888a59ba3933db6dd /web/src/style.rs | |
parent | 74d01a69577065ce4152fc80b297e8816ab3deff (diff) | |
parent | aecc3ad1955b8433d1634ab1b975d2af20e772a1 (diff) | |
download | iced-eb8866007456c7ea9efb5449096b0aa15b66ba9b.tar.gz iced-eb8866007456c7ea9efb5449096b0aa15b66ba9b.tar.bz2 iced-eb8866007456c7ea9efb5449096b0aa15b66ba9b.zip |
Merge pull request #137 from hecrj/feature/fill-portion
Add `Length::FillPortion` variant
Diffstat (limited to 'web/src/style.rs')
-rw-r--r-- | web/src/style.rs | 2 |
1 files changed, 1 insertions, 1 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%"), } } |