mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-12-15 10:36:58 +00:00
Do not calculate height delta when the window is maximized
This commit is contained in:
parent
4637dfdc4a
commit
a624768b2a
1 changed files with 5 additions and 0 deletions
|
|
@ -474,6 +474,11 @@ namespace Ryujinx.Ava.UI.Windows
|
||||||
|
|
||||||
private void SaveHeightCorrection()
|
private void SaveHeightCorrection()
|
||||||
{
|
{
|
||||||
|
if (WindowState != WindowState.Normal)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Store the delta between the height we set (ViewModel.WindowHeight) and the actual height returned by Avalonia (Height).
|
// Store the delta between the height we set (ViewModel.WindowHeight) and the actual height returned by Avalonia (Height).
|
||||||
_heightCorrection = Height - ViewModel.WindowHeight;
|
_heightCorrection = Height - ViewModel.WindowHeight;
|
||||||
if (Math.Abs(_heightCorrection) > 50)
|
if (Math.Abs(_heightCorrection) > 50)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue