From d601ca6b235569ff7d1c2bc0c568ec054ae6f112 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 13 Aug 2024 14:57:05 +0800 Subject: [PATCH] enhance: force InvalidateVisual --- src/Views/CommitRefsPresenter.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Views/CommitRefsPresenter.cs b/src/Views/CommitRefsPresenter.cs index f941d4a5..da842182 100644 --- a/src/Views/CommitRefsPresenter.cs +++ b/src/Views/CommitRefsPresenter.cs @@ -191,9 +191,11 @@ namespace SourceGit.Views requiredWidth += label.Width + 16 /* icon */ + 8 /* label margin */ + 4 /* item right margin */; } + InvalidateVisual(); return new Size(requiredWidth, 16); } + InvalidateVisual(); return new Size(0, 0); }