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

MacOS: window.print() margins and dialog options differ #713

Closed
1 of 2 tasks
sc00 opened this issue Sep 30, 2022 · 1 comment · Fixed by #1259
Closed
1 of 2 tasks

MacOS: window.print() margins and dialog options differ #713

sc00 opened this issue Sep 30, 2022 · 1 comment · Fixed by #1259

Comments

@sc00
Copy link

sc00 commented Sep 30, 2022

Describe the bug
When printing using the window.print() method in the context of MacOS, page margins as well as dialog options differ from Safari. Margins are significantly larger and paper size and orientation options are absent.

Steps To Reproduce
Initialise Tauri Vanilla app, call window.print() method.

Expected behavior
Default margins and all options available.

Screenshots
image
image

Platform and Versions (please complete the following information):
OS: macOS 12.6
Rustc: 1.57

Would you assign yourself to resolve this bug?

  • Yes
  • No

Additional context
The @page rule is not implemented with Safari. Setting the printable area to "position: fixed;" and "top: 0; right: 0; left: 0;" does not influence the margins. Using negative inset will result in cutting the content off.

@FabianLars
Copy link
Member

Here's the discord convo about this because it goes further than that. The print dialog is also different from the Safari one and doesn't make it possible to change the margins: https://discord.com/channels/616186924390023171/731495028677148753/1025386181720023050

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📬Proposal
Development

Successfully merging a pull request may close this issue.

3 participants