summaryrefslogtreecommitdiffstats
path: root/web/src/widget
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2019-12-31 10:35:51 +0100
committerLibravatar GitHub <noreply@github.com>2019-12-31 10:35:51 +0100
commiteb8866007456c7ea9efb5449096b0aa15b66ba9b (patch)
tree68004fd1f6ad89b4fdf2b37888a59ba3933db6dd /web/src/widget
parent74d01a69577065ce4152fc80b297e8816ab3deff (diff)
parentaecc3ad1955b8433d1634ab1b975d2af20e772a1 (diff)
downloadiced-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.rs2
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) => {