Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set initlal viewport for interactive shots #128

Merged
merged 2 commits into from
Feb 5, 2024
Merged

Conversation

mhalle
Copy link
Contributor

@mhalle mhalle commented Nov 3, 2023

Quick fix to set the initial viewport for interactive shots. I moved the viewport creation to a function because viewports are calculated with defaults and used in a couple places.


📚 Documentation preview 📚: https://shot-scraper--128.org.readthedocs.build/en/128/

if shot.get("height"):
full_page = False

full_page = not shot.get("height")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this, it's cleaner.

@mhalle
Copy link
Contributor Author

mhalle commented Nov 3, 2023

OK, if I submit other pull requests I won't bump the version.

@simonw simonw merged commit a34a84a into simonw:main Feb 5, 2024
simonw added a commit that referenced this pull request Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants