Pdf.Wpf icon indicating copy to clipboard operation
Pdf.Wpf copied to clipboard

ProcessDestination method in PdfViewer for Wpf

Open pmilinmsn opened this issue 5 years ago • 0 comments

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.

pmilinmsn avatar Mar 08 '21 21:03 pmilinmsn