mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
enhance: fore invalidate measure after data context of BisectStateIndicator
changed
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
d44d2b9770
commit
91acf0a32a
2 changed files with 9 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SourceGit.Models
|
||||
{
|
||||
|
@ -9,6 +10,7 @@ namespace SourceGit.Models
|
|||
Detecting,
|
||||
}
|
||||
|
||||
[Flags]
|
||||
public enum BisectCommitFlag
|
||||
{
|
||||
None = 0,
|
||||
|
|
|
@ -65,6 +65,12 @@ namespace SourceGit.Views
|
|||
RenderImpl(context, Brushes.Red, _bad, x);
|
||||
}
|
||||
|
||||
protected override void OnDataContextChanged(EventArgs e)
|
||||
{
|
||||
base.OnDataContextChanged(e);
|
||||
InvalidateMeasure();
|
||||
}
|
||||
|
||||
protected override Size MeasureOverride(Size availableSize)
|
||||
{
|
||||
var desiredFlags = Models.BisectCommitFlag.None;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue