From: sr55 Date: Fri, 9 Sep 2016 21:44:00 +0000 (+0100) Subject: WinGui: Add more space around the preview window when the content is larger than... X-Git-Tag: 1.0.0~230 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c50a2c7d9d3045cda7827285e816b8af7b4ab106;p=handbrake WinGui: Add more space around the preview window when the content is larger than the screen work area. --- 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; } }