mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-20 21:01:06 +08:00
fix: LineNumberMargin did not recalculate required size after data context changed
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user