Skip to content

Commit

Permalink
Remove no-longer-needed hack
Browse files Browse the repository at this point in the history
dremin committed Apr 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent badcdad commit 0eea421
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions RetroBar/Taskbar.xaml.cs
Original file line number Diff line number Diff line change
@@ -267,38 +267,6 @@ private void Settings_PropertyChanged(object sender, PropertyChangedEventArgs e)

private void Taskbar_OnLocationChanged(object sender, EventArgs e)
{
// primarily for win7/8, they will set up the appbar correctly but then put it in the wrong place
if (Orientation == Orientation.Vertical)
{
double desiredLeft = 0;

if (AppBarEdge == AppBarEdge.Left)
{
desiredLeft = Screen.Bounds.Left / DpiScale;
}
else if (AppBarEdge == AppBarEdge.Right)
{
desiredLeft = Screen.Bounds.Right / DpiScale - DesiredWidth;
}

if (Left != desiredLeft) Left = desiredLeft;
}
else
{
double desiredTop = 0;

if (AppBarEdge == AppBarEdge.Top)
{
desiredTop = Screen.Bounds.Top / DpiScale;
}
else if (AppBarEdge == AppBarEdge.Bottom)
{
desiredTop = Screen.Bounds.Bottom / DpiScale - DesiredHeight;
}

if (Top != desiredTop) Top = desiredTop;
}

UpdateTrayPosition();
StartButton?.UpdateFloatingStartCoordinates();
}

0 comments on commit 0eea421

Please sign in to comment.