We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems like new WKWebView is injecting undesirable print margins which is not consistent with how web-browsers are behaving.
For example, consider printing this HTML:
<div style="background-color: #000; height: 100px"></div>
When printing this HTML from WKWebView, here is the print preview:
When printing this HTML from Safari, here is the print print preview:
Notice inconsistent print margins between those two.
I think it has something to do with:
Eto/src/Eto.Mac/Forms/Controls/WKWebViewHandler.cs
Line 296 in 32703b9
Where the legacy WebView component had the margins hardcoded as per:
Eto/src/Eto.Mac/Forms/Controls/WebViewHandler.cs
Lines 249 to 257 in 32703b9
The text was updated successfully, but these errors were encountered:
Hey @lubos,
Thanks for reporting the issue! Looks like (another) easy fix.
Sorry, something went wrong.
Mac: Use proper print margins for WKWebView
c20615f
Fixes picoe#1873
8be7d55
Successfully merging a pull request may close this issue.
It seems like new WKWebView is injecting undesirable print margins which is not consistent with how web-browsers are behaving.
For example, consider printing this HTML:
<div style="background-color: #000; height: 100px"></div>
When printing this HTML from WKWebView, here is the print preview:
When printing this HTML from Safari, here is the print print preview:
Notice inconsistent print margins between those two.
I think it has something to do with:
Eto/src/Eto.Mac/Forms/Controls/WKWebViewHandler.cs
Line 296 in 32703b9
Where the legacy WebView component had the margins hardcoded as per:
Eto/src/Eto.Mac/Forms/Controls/WebViewHandler.cs
Lines 249 to 257 in 32703b9
The text was updated successfully, but these errors were encountered: