From c50a2c7d9d3045cda7827285e816b8af7b4ab106 Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 9 Sep 2016 22:44:00 +0100 Subject: [PATCH] WinGui: Add more space around the preview window when the content is larger than the screen work area. --- win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs index 70ad9f71e..b08122abd 100644 --- a/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs @@ -475,13 +475,13 @@ namespace HandBrakeWPF.ViewModels Rect workArea = SystemParameters.WorkArea; if (ea.NewSize.Width > workArea.Width) { - this.Width = (int)Math.Round(workArea.Width, 0) - 20; + this.Width = (int)Math.Round(workArea.Width, 0) - 50; this.Title = Resources.Preview_Scaled; } if (ea.NewSize.Height > workArea.Height) { - this.Height = (int)Math.Round(workArea.Height, 0) - 20; + this.Height = (int)Math.Round(workArea.Height, 0) - 50; this.Title = Resources.Preview_Scaled; } } -- 2.40.0