mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
Merge pull request #383 from gadfly3173/fix/counter-visual
fix: invalidate counter visual (#338)
This commit is contained in:
commit
19924930bc
1 changed files with 1 additions and 5 deletions
|
@ -63,11 +63,6 @@ namespace SourceGit.Views
|
||||||
FontFamilyProperty,
|
FontFamilyProperty,
|
||||||
ForegroundProperty,
|
ForegroundProperty,
|
||||||
CountProperty);
|
CountProperty);
|
||||||
|
|
||||||
AffectsRender<CounterPresenter>(
|
|
||||||
ForegroundProperty,
|
|
||||||
BackgroundProperty,
|
|
||||||
CountProperty);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Render(DrawingContext context)
|
public override void Render(DrawingContext context)
|
||||||
|
@ -98,6 +93,7 @@ namespace SourceGit.Views
|
||||||
_label = null;
|
_label = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
InvalidateVisual();
|
||||||
return _label != null ? new Size(_label.Width + 18, 18) : new Size(0, 0);
|
return _label != null ? new Size(_label.Width + 18, 18) : new Size(0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue