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

Rotation messes up rendering viewport #11

Closed
bictorv opened this issue Jun 30, 2021 · 1 comment
Closed

Rotation messes up rendering viewport #11

bictorv opened this issue Jun 30, 2021 · 1 comment

Comments

@bictorv
Copy link
Contributor

bictorv commented Jun 30, 2021

In index.js, you swap width and height if rotating, but then use the original widht/height in the addStyleTag call. If you use size.width in place of pageConfig.renderingScreenSize.width around line 160 (and similar for .height) it works better.

@sibbl
Copy link
Owner

sibbl commented Jun 30, 2021

@bictorv good catch, thanks for the hint! I've just updated it :)

@sibbl sibbl closed this as completed Jun 30, 2021
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

No branches or pull requests

2 participants