diff --git a/CenterTaskbar/Program.cs b/CenterTaskbar/Program.cs index 9bf93db..bd30857 100644 --- a/CenterTaskbar/Program.cs +++ b/CenterTaskbar/Program.cs @@ -401,7 +401,6 @@ private bool PositionLoop(AutomationElement trayWnd) return false; } - // Right bounds check int rightBounds; int leftBounds; try @@ -414,7 +413,8 @@ private bool PositionLoop(AutomationElement trayWnd) Reset(trayWnd); return true; } - + + // Right bounds check if (targetPos + size > rightBounds) { // Shift off center when the bar is too big