From 368ace9fe6d73f3fa51074344182e6a9d96b78c9 Mon Sep 17 00:00:00 2001 From: ema Date: Thu, 23 Apr 2026 02:36:32 +0800 Subject: [PATCH] Remove default size and sensory faster rendering Also similar to Peek. --- .../QuickLook.Plugin.OfficeViewer/PreviewHandlerHost.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/QuickLook.Plugin/QuickLook.Plugin.OfficeViewer/PreviewHandlerHost.cs b/QuickLook.Plugin/QuickLook.Plugin.OfficeViewer/PreviewHandlerHost.cs index 24c513b..f25c3af 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.OfficeViewer/PreviewHandlerHost.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.OfficeViewer/PreviewHandlerHost.cs @@ -17,7 +17,6 @@ using System; using System.ComponentModel; -using System.Drawing; using System.IO; using System.Runtime.InteropServices; using System.Windows.Forms; @@ -41,7 +40,6 @@ public class PreviewHandlerHost : Control /// public PreviewHandlerHost() { - Size = new Size(320, 240); } /// @@ -85,9 +83,9 @@ public class PreviewHandlerHost : Control catch (COMException ex) when (ex.HResult == unchecked((int)0x8001010D)) { // RPC_E_CANTCALLOUT_ININPUTSYNCCALL - // This exception occurs when an outgoing call cannot be made because + // This exception occurs when an outgoing call cannot be made because // the application is dispatching an input-synchronous call. - // It's safe to ignore this exception as the preview handler will be + // It's safe to ignore this exception as the preview handler will be // resized on the next resize event. } }