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

ProcessDestination method in PdfViewer for Wpf #4

Open
pmilinmsn opened this issue Mar 8, 2021 · 0 comments
Open

ProcessDestination method in PdfViewer for Wpf #4

pmilinmsn opened this issue Mar 8, 2021 · 0 comments

Comments

@pmilinmsn
Copy link

ProcessDestination calculates the client width and height in order process FitR destinations. In doing so it is subtracting off the system scrollbar width and height from the ActualWidth and ActualHeight properties of the viewer. The trouble is that in WPF, the pdfViewer needs to be put into a ScrollViewer in order to even have scrollbars and the ScrollViewer can have a control template that does not use the system scrollbar sizes. I think the ActualWidth and ActualHeight by itself is the proper value to use because it doesn't include the scrollbar width and height.

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

1 participant