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

fix: set viewport for element screenshots #11772

Merged
merged 1 commit into from Jan 29, 2024

Conversation

jrandolf
Copy link
Contributor

@jrandolf jrandolf commented Jan 29, 2024

If the element is larger than the viewport but within a scrollable element, the element will cut off (captureBeyondViewport will not help here). To alleviate this problem, we need to adjust the viewport to (hopefully) enlarge the scrollable element to capture the inner element.

Fixed: 11597

@jrandolf jrandolf requested a review from OrKoN January 29, 2024 11:49
@jrandolf jrandolf force-pushed the jrandolf/fix-element-screenshot branch from 165193b to 539fab4 Compare January 29, 2024 11:57
@jrandolf jrandolf force-pushed the jrandolf/fix-element-screenshot branch from 539fab4 to 6e64a35 Compare January 29, 2024 12:58
@jrandolf jrandolf requested a review from OrKoN January 29, 2024 12:58
@jrandolf
Copy link
Contributor Author

As discussed offline, we will merge this and create a breaking change in the next release.

@jrandolf jrandolf force-pushed the jrandolf/fix-element-screenshot branch from 6e64a35 to 2f181fd Compare January 29, 2024 12:59
@jrandolf jrandolf enabled auto-merge (squash) January 29, 2024 13:01
@jrandolf jrandolf merged commit 9cd6673 into main Jan 29, 2024
38 checks passed
@jrandolf jrandolf deleted the jrandolf/fix-element-screenshot branch January 29, 2024 13:09
@release-please release-please bot mentioned this pull request Jan 29, 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.

captureBeyondViewport does not work in v21.6.1
2 participants