fix scrollbar bug

This commit is contained in:
Paddy Xu
2017-07-24 21:41:04 +03:00
parent 2ef607ecb9
commit f627011802

View File

@@ -160,12 +160,12 @@ namespace QuickLook.Plugin.PDFViewer
var bitmap = PdfHandle.GetPage(CurrentPage, factor);
var image = bitmap.ToBitmapSource();
bitmap.Dispose();
pagePanel.ResetZoom();
pagePanel.Source = image;
pagePanel.ResetZoom();
_viewRenderFactor = factor;
pagePanel.SetScrollPosition(pos);
Dispatcher.Delay(500, t => GC.Collect());