From cdd8c793c9699731db52a7c2e61ae99052a11e22 Mon Sep 17 00:00:00 2001 From: Ryan Knittel Date: Fri, 12 Feb 2016 17:45:42 -0800 Subject: [PATCH] Removed the "jittering" when the sidebar is setting its position with "Reserve Space" enabled. Also added cycle edge and screen hotkeys. --- SidebarDiagnostics/Dummy.xaml.cs | 4 +- SidebarDiagnostics/Settings.xaml | 10 ++ SidebarDiagnostics/Settings.xaml.cs | 36 +++++++ SidebarDiagnostics/SettingsModel.cs | 48 ++++++++- SidebarDiagnostics/Setup.xaml.cs | 4 +- SidebarDiagnostics/Sidebar.xaml.cs | 58 ++++++---- SidebarDiagnostics/Windows.cs | 158 +++++++++++++++++++++------- 7 files changed, 254 insertions(+), 64 deletions(-) diff --git a/SidebarDiagnostics/Dummy.xaml.cs b/SidebarDiagnostics/Dummy.xaml.cs index e17cb48..c2ebbec 100644 --- a/SidebarDiagnostics/Dummy.xaml.cs +++ b/SidebarDiagnostics/Dummy.xaml.cs @@ -16,7 +16,7 @@ public Dummy() InitializeComponent(); } - public void Position() + public void Reposition() { int _screen; DockEdge _edge; @@ -33,7 +33,7 @@ public void Position() private void Window_Loaded(object sender, RoutedEventArgs e) { - Position(); + Reposition(); } } } diff --git a/SidebarDiagnostics/Settings.xaml b/SidebarDiagnostics/Settings.xaml index a02a680..7e88fcc 100644 --- a/SidebarDiagnostics/Settings.xaml +++ b/SidebarDiagnostics/Settings.xaml @@ -319,6 +319,8 @@ + +