Skip to content

Commit f2e8fa3

Browse files
committed
enhance: it's not necessary to invalidate measure of LineModifyTypeMargin when data context of text-diff-view changed
Signed-off-by: leo <[email protected]>
1 parent e09e1bd commit f2e8fa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Views/TextDiffView.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ protected override Size MeasureOverride(Size availableSize)
203203
protected override void OnDataContextChanged(EventArgs e)
204204
{
205205
base.OnDataContextChanged(e);
206-
InvalidateMeasure();
206+
InvalidateVisual();
207207
}
208208
}
209209

0 commit comments

Comments
 (0)