fix: LineNumberMargin did not recalculate required size after data context changed

This commit is contained in:
leo 2024-05-17 10:52:28 +08:00
parent f973834dab
commit d9a14432cc

View file

@ -85,6 +85,12 @@ namespace SourceGit.Views
}
}
protected override void OnDataContextChanged(EventArgs e)
{
base.OnDataContextChanged(e);
InvalidateMeasure();
}
private readonly CombinedTextDiffPresenter _editor;
private readonly bool _isOldLine;
}
@ -458,6 +464,12 @@ namespace SourceGit.Views
}
}
protected override void OnDataContextChanged(EventArgs e)
{
base.OnDataContextChanged(e);
InvalidateMeasure();
}
private readonly SingleSideTextDiffPresenter _editor;
}