Skip to content

Commit

Permalink
gh-48 Fix drop shadow disappearing when lists are too long
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrondeau committed Jun 7, 2017
1 parent da19942 commit 4a67e57
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions GoToWindow/GoToWindowContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ public void Show()
_mainWindow.Left = SystemParameters.PrimaryScreenWidth / 2f - _mainViewModel.AvailableWindowWidth / 2f;
_mainWindow.Top = SystemParameters.PrimaryScreenHeight / 2f - (_mainViewModel.AvailableWindowHeight + 56) / 2f;
_mainWindow.Width = _mainViewModel.AvailableWindowWidth;
_mainWindow.MaxHeight = _mainViewModel.AvailableWindowHeight;

_mainWindow.Show();

Expand All @@ -98,7 +97,7 @@ private void SetAvailableWindowSize(double screenWidth, double screenHeight)
if (screenWidth > 1280)
{
_mainViewModel.AvailableWindowWidth = (int) (screenWidth*0.5f);
_mainViewModel.AvailableWindowHeight = (int) (screenHeight*0.66f);
_mainViewModel.AvailableWindowHeight = (int) (screenHeight*0.5);
}
else if (screenWidth < 800)
{
Expand Down

0 comments on commit 4a67e57

Please sign in to comment.