summaryrefslogtreecommitdiffstats
path: root/examples/svg.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-09 06:04:05 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-09 06:04:05 +0100
commit5e018965ee99c44fe50f9be8f7b69cd486d183be (patch)
tree65862c87a2835e71ad074e143efbbb6d665a535b /examples/svg.rs
parent89b1ac6eac03bec9e2acb9b4d59da86e59d26153 (diff)
parent6699329d3f91c5b9d8e8e55ad88de24bd3894955 (diff)
downloadiced-5e018965ee99c44fe50f9be8f7b69cd486d183be.tar.gz
iced-5e018965ee99c44fe50f9be8f7b69cd486d183be.tar.bz2
iced-5e018965ee99c44fe50f9be8f7b69cd486d183be.zip
Merge branch 'master' into feature/custom-styling
Diffstat (limited to 'examples/svg.rs')
-rw-r--r--examples/svg.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/svg.rs b/examples/svg.rs
index cdf238f0..1895039d 100644
--- a/examples/svg.rs
+++ b/examples/svg.rs
@@ -25,13 +25,14 @@ impl Sandbox for Tiger {
let content = {
use iced::{Column, Svg};
- Column::new()
- .width(Length::Shrink)
- .padding(20)
- .push(Svg::new(format!(
+ Column::new().padding(20).push(
+ Svg::new(format!(
"{}/examples/resources/tiger.svg",
env!("CARGO_MANIFEST_DIR")
- )))
+ ))
+ .width(Length::Fill)
+ .height(Length::Fill),
+ )
};
#[cfg(not(feature = "svg"))]
@@ -39,7 +40,6 @@ impl Sandbox for Tiger {
use iced::{HorizontalAlignment, Text};
Text::new("You need to enable the `svg` feature!")
- .width(Length::Shrink)
.horizontal_alignment(HorizontalAlignment::Center)
.size(30)
};