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/widget | |
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/widget')
-rw-r--r-- | web/src/widget/image.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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) => { |