Skip to content

Commit

Permalink
修复同时更改Left和Width/Top和Height时,设置错误
Browse files Browse the repository at this point in the history
  • Loading branch information
kkwpsv committed Jul 14, 2022
1 parent d6186b4 commit 5647fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WindowDebugger/ViewModels/WindowItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public void SetTopMost(bool isTopMost)

public void UpdateWindowRect(int left, int top, int width, int height)
{
_window.Rect = new RECT { left = left, top = top, right = Left + width, bottom = Top + height };
_window.Rect = new RECT { left = left, top = top, right = left + width, bottom = top + height };
OnPropertyChanged(nameof(Left));
OnPropertyChanged(nameof(Top));
OnPropertyChanged(nameof(Width));
Expand Down

0 comments on commit 5647fe9

Please sign in to comment.