Skip to content

Commit

Permalink
Resize fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flabbet committed Mar 7, 2022
1 parent e272a05 commit de0e148
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void ResizeCanvas(int width, int height, AnchorPoint anchor, bool addToUn
ResizeCanvas(newOffsets, width, height);
}

if (width == Width && Height == height) return;
if (oldWidth == Width && Height == oldHeight) return;

DocumentSizeChanged?.Invoke(this, new DocumentSizeChangedEventArgs(oldWidth, oldHeight, width, height));
}
Expand Down

0 comments on commit de0e148

Please sign in to comment.