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 => {
|
||||
if let Some(pdf) = slide.pdf_page() {
|
||||
Container::new(
|
||||
image(pdf)
|
||||
.content_fit(ContentFit::Cover)
|
||||
.width(width)
|
||||
.height(size.height),
|
||||
image(pdf).content_fit(ContentFit::Contain),
|
||||
)
|
||||
.center_x(width)
|
||||
.center_y(size.height)
|
||||
.center(Length::Fill)
|
||||
.clip(true)
|
||||
} else {
|
||||
Container::new(Space::new(0.0, 0.0))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue