From a78703662ec6bfb575df283c1e1b4e4776723b43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiago=20Concei=C3=A7=C3=A3o?= Date: Sat, 13 Feb 2021 00:07:08 +0000 Subject: [PATCH] Update MSI --- UVtools.InstallerMM/UVtools.InstallerMM.wxs | 4 ++-- UVtools.WPF/Windows/ToolWindow.axaml.cs | 11 ++++------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/UVtools.InstallerMM/UVtools.InstallerMM.wxs b/UVtools.InstallerMM/UVtools.InstallerMM.wxs index 0bda982..079c008 100644 --- a/UVtools.InstallerMM/UVtools.InstallerMM.wxs +++ b/UVtools.InstallerMM/UVtools.InstallerMM.wxs @@ -308,8 +308,8 @@ - - + + diff --git a/UVtools.WPF/Windows/ToolWindow.axaml.cs b/UVtools.WPF/Windows/ToolWindow.axaml.cs index 4d3d4f2..2eb4725 100644 --- a/UVtools.WPF/Windows/ToolWindow.axaml.cs +++ b/UVtools.WPF/Windows/ToolWindow.axaml.cs @@ -542,13 +542,6 @@ namespace UVtools.WPF.Windows ExpanderHeaderMaxWidth = DescriptionMaxWidth - 40; Height = MaxHeight; - - - Position = new PixelPoint( - (int)(App.MainWindow.Position.X + App.MainWindow.Width / 2 - Width / 2), - App.MainWindow.Position.Y + 20 - ); - DispatcherTimer.Run(() => { if (Math.Max((int)_contentScrollViewer.Extent.Height - (int)_contentScrollViewer.Viewport.Height, 0) == 0) @@ -556,6 +549,10 @@ namespace UVtools.WPF.Windows Height = 10; SizeToContent = SizeToContent.WidthAndHeight; } + Position = new PixelPoint( + (int)(App.MainWindow.Position.X + App.MainWindow.Width / 2 - Width / 2), + App.MainWindow.Position.Y + 20 + ); return false; }, TimeSpan.FromMilliseconds(2));