logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Post a reply
From:
Message:

Maximum number of characters in each post is: 32767
Bold Italic Underline   Highlight Quote Choose Language for Syntax Highlighting Insert Image Insert an existing Attachment or upload a new File... Create Link   Unordered List Ordered List   Left Justify Center Justify Right Justify   Outdent Indent   More BBCode Tags
Font Color Font Size
Security Image:
Enter The Letters From The Security Image:
  Preview Post Cancel

Last 10 Posts (In reverse order)
pmilin Posted: Tuesday, March 9, 2021 9:01:46 AM(UTC)
 
According to the code in the Github Repo, ProcessDestination calculates the client width and height in order to process FitR, FitBH, FitBV 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.