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

Page spread view is weird when viewport width/height is specified #447

Closed
MurakamiShinyu opened this issue Aug 31, 2018 · 2 comments
Closed
Assignees
Labels

Comments

@MurakamiShinyu
Copy link
Member

Test sample HTML: https://output.jsbin.com/lifizum

In this sample, <meta name="viewport" content="width=1200, height=1536"> is specified in HTML.

With Vivliostyle viewer:
https://vivliostyle.github.io/vivliostyle.js/viewer/vivliostyle-viewer.html#x=https://output.jsbin.com/lifizum

When the page view mode is "single page" the result is good, but when the page view mode is "spread", the result is weird, i.e., the page spread is offset to bottom and page width is incorrect. See the screenshot:

screenshot 2018-08-31 12 14 21

@MurakamiShinyu MurakamiShinyu self-assigned this Aug 31, 2018
@MurakamiShinyu MurakamiShinyu changed the title Page spread view is weird when viewport width/height is specified on HTML meta Page spread view is weird when viewport width/height is specified Aug 31, 2018
@MurakamiShinyu
Copy link
Member Author

-epubx-viewport { width; height; } has same problem.

@MurakamiShinyu
Copy link
Member Author

Fixed.

MurakamiShinyu added a commit that referenced this issue Sep 1, 2018
considering spread page border and special case where specified viewport size equals to natural viewport size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant