Skip to content

Commit

Permalink
Merge pull request #816 from dremin/remove-top-hack
Browse files Browse the repository at this point in the history
Remove no-longer-needed hack
  • Loading branch information
dremin authored Apr 30, 2024
2 parents 09aaa0f + 0eea421 commit bc5755c
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
Expand Up @@ -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();
}
Expand Down

0 comments on commit bc5755c

Please sign in to comment.