Pdfs now show the whole slide and will instead do black bars on top or sides
Some checks failed
/ test (push) Has been cancelled
Some checks failed
/ test (push) Has been cancelled
This commit is contained in:
parent
470e14e5ca
commit
15d35f63ff
1 changed files with 2 additions and 6 deletions
|
|
@ -814,13 +814,9 @@ pub(crate) fn slide_view<'a>(
|
||||||
BackgroundKind::Pdf => {
|
BackgroundKind::Pdf => {
|
||||||
if let Some(pdf) = slide.pdf_page() {
|
if let Some(pdf) = slide.pdf_page() {
|
||||||
Container::new(
|
Container::new(
|
||||||
image(pdf)
|
image(pdf).content_fit(ContentFit::Contain),
|
||||||
.content_fit(ContentFit::Cover)
|
|
||||||
.width(width)
|
|
||||||
.height(size.height),
|
|
||||||
)
|
)
|
||||||
.center_x(width)
|
.center(Length::Fill)
|
||||||
.center_y(size.height)
|
|
||||||
.clip(true)
|
.clip(true)
|
||||||
} else {
|
} else {
|
||||||
Container::new(Space::new(0.0, 0.0))
|
Container::new(Space::new(0.0, 0.0))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue