summaryrefslogtreecommitdiffstats
path: root/web/src/widget
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-30 18:37:13 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-30 19:33:27 +0100
commitaecc3ad1955b8433d1634ab1b975d2af20e772a1 (patch)
tree549e1c3b58f60b130117f036cbdf71157d1a7ff1 /web/src/widget
parent4b86c2ff987e334c3454540828c6f8d16d27c670 (diff)
downloadiced-aecc3ad1955b8433d1634ab1b975d2af20e772a1.tar.gz
iced-aecc3ad1955b8433d1634ab1b975d2af20e772a1.tar.bz2
iced-aecc3ad1955b8433d1634ab1b975d2af20e772a1.zip
Add `Length::FillPortion` variant
It allows to specify the amount of available space an element should take relative to other elements.
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) => {